Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Compile error Collapse All
Subject Author Date
Khoa Nguyen Tan Aug 15, 2003 - 5:21 AM

Hi,

First, thanks a lot for your excellent libs. I used it in my project about making an IDE for TeX users on Windows. When i begin making a simple MFC programming using your libs, everything works fine. However, when I enable Unicode compiler directives, I got a problem of building my program. When I compile my program, I have this kind of error message.

--------------------Configuration: TeXMe - Win32 Debug--------------------
Compiling...
Command line warning D4002 : ignoring unknown option ’/c ’
MainFrm.cpp
LINK : fatal error LNK1561: entry point must be defined
Error executing cl.exe.

MainFrm.obj - 1 error(s), 1 warning(s)

--------------------------------------------------------------------------

However, if I build again once more, everything is OK.

Whenever I change the code and compile for the first time, I face that error again.

I’m just a newbie so that even I have tried many ways, read help but I can figure out the solution. So I come to your help.

Thanks for reading.

Sergiy Lavrynenko Aug 15, 2003 - 8:57 AM

Hi,

The LNK1561 error may occur when building EXE-target projects if:


  • In the preprocessor settings you have defined symbols which are specific for DLL-taget projects (not for EXE); Please try to compare your project settings with any my UNICODE sample configurations;

  • The linker is configured to produce DLL-module (/dll command line parameter is set) instead of EXE-module;

  • The Unicode EXE-target project must use entry point named wWinMainCRTStartup; Please verify wWinMainCRTStartup text is set in the entry-point field of the linker settings;


You can send me your project and I will fix this problem in its settings.

Best regards,
Sergiy.

Khoa Nguyen Tan Aug 19, 2003 - 8:26 AM

Thanks very much for your answer. Finally, after a lot of trying, I have figured the error.