Click to See Complete Forum and Search --> : Link error with #define _UNICODE


chamo
April 20th, 1999, 01:41 AM
Hi all,
I'm trying using the unicode property. But in the link process I got the following error:


msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/etrangevision.exe : fatal error LNK1120: 1 unresolved externals




What means this error.
Thanks in advance

SKB
April 20th, 1999, 04:51 AM
If you look up LNK2001 in the Help you will find the following paragraph.

"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 Project menu, then click the Link tab, and click Output in the Category box.) "

This will solve the problem.