Plz. help.............
-
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:)
NityaKakkar wrote:
How to solve this problem as fast as possible.
Create a new Windows based Project!, fastest way to solve this problem
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
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:)
I am not using .NET, but it sounds like you not have a main function your console application. If it is a console application then swhiching to it to a windows application will naturely generate more errors. INTP Every thing is relative...