PDA

View Full Version : Programming.



Sintacks
07-23-2006, 12:24 AM
Er, I keep having this same damn error, and I don't really know how to fix it. I changed subsystem:console to subsystem:windows, uh.. upgraded to sp5, and added the ppack.. and switched from single threaded, to multi threaded. -_- damn thing still isn't working, any advice?

here are the errors.

error LNK200*: unresolved external symbol _closesocket@4
sdbot05b.obj : error LNK200*: unresolved external symbol _WSACleanup@0
sdbot05b.obj : error LNK200*: unresolved external symbol _WSAStartup@8
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetOpenA@20
sdbot05b.obj : error LNK200*: unresolved external symbol _connect@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _socket@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _gethostbyaddr@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _gethostbyname@4
sdbot05b.obj : error LNK200*: unresolved external symbol _inet_addr@4
sdbot05b.obj : error LNK200*: unresolved external symbol _htons@4
sdbot05b.obj : error LNK200*: unresolved external symbol _send@*6
sdbot05b.obj : error LNK200*: unresolved external symbol _accept@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _listen@8
sdbot05b.obj : error LNK200*: unresolved external symbol _bind@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _WSAAsyncSelect@*6
sdbot05b.obj : error LNK200*: unresolved external symbol _recv@*6
sdbot05b.obj : error LNK200*: unresolved external symbol _inet_ntoa@4
sdbot05b.obj : error LNK200*: unresolved external symbol _sendto@24
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetCloseHandle@4
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetReadFile@*6
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetOpenUrlA@24
sdbot05b.obj : error LNK200*: unresolved external symbol _getsockname@*2
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__HttpSendRequestA@20
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__HttpOpenRequestA@*2
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetConnectA@*2
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetCrackUrlA@*6
Debug/sdbot05b.exe : fatal error LNK**20: 26 unresolved externals
Error executing link.exe.

Ezekiel
07-23-2006, 04:04 AM
Er, I keep having this same damn error, and I don't really know how to fix it. I changed subsystem:console to subsystem:windows, uh.. upgraded to sp5, and added the ppack.. and switched from single threaded, to multi threaded. -_- damn thing still isn't working, any advice?

here are the errors.

error LNK200*: unresolved external symbol _closesocket@4
sdbot05b.obj : error LNK200*: unresolved external symbol _WSACleanup@0
sdbot05b.obj : error LNK200*: unresolved external symbol _WSAStartup@8
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetOpenA@20
sdbot05b.obj : error LNK200*: unresolved external symbol _connect@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _socket@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _gethostbyaddr@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _gethostbyname@4
sdbot05b.obj : error LNK200*: unresolved external symbol _inet_addr@4
sdbot05b.obj : error LNK200*: unresolved external symbol _htons@4
sdbot05b.obj : error LNK200*: unresolved external symbol _send@*6
sdbot05b.obj : error LNK200*: unresolved external symbol _accept@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _listen@8
sdbot05b.obj : error LNK200*: unresolved external symbol _bind@*2
sdbot05b.obj : error LNK200*: unresolved external symbol _WSAAsyncSelect@*6
sdbot05b.obj : error LNK200*: unresolved external symbol _recv@*6
sdbot05b.obj : error LNK200*: unresolved external symbol _inet_ntoa@4
sdbot05b.obj : error LNK200*: unresolved external symbol _sendto@24
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetCloseHandle@4
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetReadFile@*6
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetOpenUrlA@24
sdbot05b.obj : error LNK200*: unresolved external symbol _getsockname@*2
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__HttpSendRequestA@20
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__HttpOpenRequestA@*2
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetConnectA@*2
sdbot05b.obj : error LNK200*: unresolved external symbol __imp__InternetCrackUrlA@*6
Debug/sdbot05b.exe : fatal error LNK**20: 26 unresolved externals
Error executing link.exe.

You haven't really provided much information on... anything really, but from what I can see, you haven't linked in the winsock libraries to your code.

You need to tell me what language you are programming in, and what compiler you're using.

Sintacks
07-23-2006, 12:37 PM
sorry, lol, C++ and uh msvs 6, but yeah thanks, I'm sure thats what I've done.

Sintacks
07-23-2006, 01:20 PM
Ah nevermind I fixed everything. <* thanks though, that helped alot