O
ozgan.net
Hi everyone,
I created my first COM object, but I took below errors. Why I didn't use
socket functions. I defined *.def file
__imp__WSAStartup@8 PRIVATE
__imp__socket@12 PRIVATE
__imp__htons@4 PRIVATE
__imp__connect@12 PRIVATE
__imp__recv@16 PRIVATE
__imp__closesocket@4 PRIVATE
__imp__send@16 PRIVATE
__imp__gethostbyname@4 PRIVATE
Please help me. Thank you.
(Note: I little speak english. So I'm sorry)
Linking...
Creating library Debug/test.lib and object Debug/test.exp
Request.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4
Request.obj : error LNK2001: unresolved external symbol __imp__send@16
Request.obj : error LNK2001: unresolved external symbol __imp__closesocket@4
Request.obj : error LNK2001: unresolved external symbol __imp__recv@16
Request.obj : error LNK2001: unresolved external symbol __imp__connect@12
Request.obj : error LNK2001: unresolved external symbol __imp__htons@4
Request.obj : error LNK2001: unresolved external symbol __imp__socket@12
Request.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
Debug/test.dll : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.
test.dll - 9 error(s), 0 warning(s)
I created my first COM object, but I took below errors. Why I didn't use
socket functions. I defined *.def file
__imp__WSAStartup@8 PRIVATE
__imp__socket@12 PRIVATE
__imp__htons@4 PRIVATE
__imp__connect@12 PRIVATE
__imp__recv@16 PRIVATE
__imp__closesocket@4 PRIVATE
__imp__send@16 PRIVATE
__imp__gethostbyname@4 PRIVATE
Please help me. Thank you.
(Note: I little speak english. So I'm sorry)
Linking...
Creating library Debug/test.lib and object Debug/test.exp
Request.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4
Request.obj : error LNK2001: unresolved external symbol __imp__send@16
Request.obj : error LNK2001: unresolved external symbol __imp__closesocket@4
Request.obj : error LNK2001: unresolved external symbol __imp__recv@16
Request.obj : error LNK2001: unresolved external symbol __imp__connect@12
Request.obj : error LNK2001: unresolved external symbol __imp__htons@4
Request.obj : error LNK2001: unresolved external symbol __imp__socket@12
Request.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
Debug/test.dll : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.
test.dll - 9 error(s), 0 warning(s)