Click to See Complete Forum and Search --> : Link error when compiling with _UNICODE
Matthew Smith
March 29th, 1999, 04:24 PM
Hi, I'm trying to compile my program in UNICODE mode, but the linker spits out the following error:
Linking...
msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
Unicode_Release/Program.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
What am I doing wrong here?
thanks,
-Matt
Allen
March 29th, 1999, 06:47 PM
The following message is copied from MFC's Help on "LNK2001":
If you are using Unicode and MFC, you will get an unresolved external on _WinMain@16 if you don't create an entrypoint to wWinMainCRTStartup. Use the /ENTRY option or type this value in the Project Settings dialog box. (To find this option in the development environment, click Settings on the Build menu, then click the Link tab, and click Output in the Category box.) See Unicode Programming Summary.
Look at the help and good luck.
Allen
Sheik Mukthar
April 14th, 1999, 09:38 AM
Can u check out the subsystem of ur compiler options. i'l like to know if u have cleared the error.
Mukthar
Ashran
January 13th, 2000, 11:58 AM
.
God does not play dice. - Einstein
Not only does God play dice, he sometimes throws them where they can't be seen. - Hawking
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.