Urgent help needed
-
Hi, I am working on Microsoft Visual Studio .NET 2003 VC++. I have created a solution & i am trying :confused: too build it & i am facing the following error: LINK : warning LNK4001: no object files specified; libraries used libcmtd.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals When this error came i went to the properties in linker\system i changed the subsytem from Console (/SUBSYSTEM:CONSOLE) to Windows (/SUBSYSTEM:WINDOWS) & in the advanced tab changed the entry point from mainCRTStartup to wWinMainCRTStartup. But then the following error is coming: LINK : warning LNK4001: no object files specified; libraries used ibcmtd.lib(wwincrt0.obj) : error LNK2019: unresolved external symbol _wWinMain@16 referenced in function _wWinMainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals How to solve this problem as fast as possible. Thanks in advance:)
-
Hi, I am working on Microsoft Visual Studio .NET 2003 VC++. I have created a solution & i am trying :confused: too build it & i am facing the following error: LINK : warning LNK4001: no object files specified; libraries used libcmtd.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals When this error came i went to the properties in linker\system i changed the subsytem from Console (/SUBSYSTEM:CONSOLE) to Windows (/SUBSYSTEM:WINDOWS) & in the advanced tab changed the entry point from mainCRTStartup to wWinMainCRTStartup. But then the following error is coming: LINK : warning LNK4001: no object files specified; libraries used ibcmtd.lib(wwincrt0.obj) : error LNK2019: unresolved external symbol _wWinMain@16 referenced in function _wWinMainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals How to solve this problem as fast as possible. Thanks in advance:)
Is your application a console app or a GUI app? In case it's a console app, you need to define a main function which acts as the entry point for the program. For GUI apps, it depends on whether you're using MFC or not. Regards Senthil _____________________________ My Blog | My Articles | WinMacro