Advertisement

Error with Winsock

Started by April 07, 2002 11:41 AM
2 comments, last by BioSquirrel 22 years, 9 months ago
When I try to use Winsock, I get an error that says: LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/Server.exe : fatal error LNK1120: 1 unresolved externals Any idea what the problem is? ------------------ Stupid Morons- my current projects
You are compiling a windows application and provided a main() entry point.

Fix it by changing from /SUBSYSTEM:WINDOWS to /SUBSYSTEM:CONSOLE in the project options, or replacing main() by WinMain().

[edited by - Fruny on April 7, 2002 12:45:47 PM]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Advertisement
Thanks..I changed it to a console application.

------------------
Stupid Morons- my current projects
Even cooler...remove the /SUBSYSTEM linker switch all together The linker is smart enough to figure out what it needs.

Dire Wolf
www.digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com

This topic is closed to new replies.

Advertisement