PDA

View Full Version : Trying to get started in MSVC++



fot
03-20-2001, 07:26 AM
I have some linking problem, i think??
I get this error message when compiling.
Linking...

libcd.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16

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

Error executing link.exe.
can anyone help please?? I'd love to start coding some cool stuff as soon as possible..
Thanks!

Heaven
03-20-2001, 09:35 AM
Sounds like you're writing a console app but setting up the Project as a windows app. When you set up your new project and want to just use main() as the body of your executable, make sure you select Console as the type of project.

Otherwise you'll have to have a winmain() or something as well as provide a callback function to intercept WM messages and all that jazz. Plenty of tutorials provided on the windows stuff at NeHe's site:
http://nehe.gamedev.net

Care,
Heaven
heaven@knology.net

03-21-2001, 08:27 AM
Originally posted by fot:
I have some linking problem, i think??
I get this error message when compiling.
Linking...

libcd.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16

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

Error executing link.exe.
can anyone help please?? I'd love to start coding some cool stuff as soon as possible..
Thanks!

VinceD
03-21-2001, 08:29 AM
Sorry - I had to edit name & my response got deleted. Check project->settings->link dialog to make sure you're included opengl32.lib and glu32.lib.