Board index » Visual Studio » Microsoft C++ 6 Linker Problems

Microsoft C++ 6 Linker Problems

Visual Studio127
Can someone help me resolve this probem. My program will compile

except for the linker part.



Thanks







Andrew



inking...

msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol

_main

Debug/Sketcher.exe : fatal error LNK1120: 1 unresolved externals

Error executing link.exe.



Sketcher.exe - 2 error(s), 0 warning(s)


-
 

Re:Microsoft C++ 6 Linker Problems

AndyH wrote:

Quote
Can someone help me resolve this probem. My program will compile

except for the linker part.



Thanks







Andrew



inking...

msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol

_main

Debug/Sketcher.exe : fatal error LNK1120: 1 unresolved externals

Error executing link.exe.



Sketcher.exe - 2 error(s), 0 warning(s)



Are you writing a console app or a windowed app? This error typically

comes from trying to write a windowed app after setting up the project

as a console app. A solution you can try is to change your SUBSYSTEM

build setting to SUBSYSTEM/WINDOWS. But it might be safer to start a

new project for a windowed MFC application so you get all the correct

build settings, then move your work into the new project.



--

Scott McPhillips [VC++ MVP]



-