Linker error 2001 @&(#&@#&$@ 
Author Message
 Linker error 2001 @&(#&@#&$@

Hi..

this program after compiling, and when trying to link gives the following
error;

ClientConnection.obj : error LNK2001: unresolved external symbol
_close_socket
JavaClientConnection.obj : error LNK2001: unresolved external symbol
_close_socket

In a header file[Sfl.h] that i use in hte program have the closest
conneciton with these error messages. as it has declared functin prototypes
as

#ifdef __cplusplus
extern "C" {
#endif

int    close_socket         (sock_t handle);
char  *socket_peeraddr      (sock_t handle);
.
.
.
.
etc..... and finaly

#if (defined (__WINDOWS__))
int    winsock_last_error   (void);
#endif

#ifdef __cplusplus

Quote:
}

#endif

And my compilation options are;

/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS"
/Fp"Release/Main.pch" /YX /Fo"Release/" /Fd"Release/" /FD

Can anyone help me , why it seems to fail linking the obj files? i am simply
lost at this point!!!!

thank you very much for any enlightment

moditha



Sun, 17 Feb 2002 03:00:00 GMT  
 Linker error 2001 @&(#&@#&$@

Quote:

>In a header file[Sfl.h] that i use in hte program have the closest
>conneciton with these error messages. as it has declared functin prototypes
>as:
>int    close_socket         (sock_t handle);
>char  *socket_peeraddr      (sock_t handle);

Those are indeed the functions. the compiler
is prepending an underscore, as it should for
extern "C", with __cdecl calling convention.

Where did the header file come from, and in what
C source file or library are these functions defined?

Add the C source file to you project, or the library
to you linker options, and try again.



Sun, 17 Feb 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Linker error 2001 @&(#&@#&$@

2. ***&&&>>> HELP --- CXL --- HELP <<<&&&****

3. linker error 2001/compiler error 2893(templates and friend clases involved)

4. scanf() && printf() error

5. Linker error: MFC extension DLL, CView & RUNTIME_CLASS

6. Linker 2001 error

7. linker 2001 error

8. Linker error 2001

9. Linker 2001 Error

10. linker 2001 error

11. CCmdTarget && delete && CList

12. /clr & edit &continue

 

 
Powered by phpBB® Forum Software