Linking Error
I tried building exe with program provided with lesson one. Followed all steps to configure VC++ still I am getting following error
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cpp1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Cpp1.exe - 2 error(s), 0 warning(s)
I am very much beginner in OpenGL and I got stuck with this very first program. Can anybody help me.
you should add an extra *.lib file which the compiler needs. or maybe you ve included too many times one file...
Actually, no. When creating your project, you have to choose either "Win32 Application" or "Win32 Console Application". You chose the latter.
If you intended to make a console application, you''re going to need a function int main () somewhere, which is your program''s entry point. However, you probably wanted to create a window application, which has the WinMain entry point. Do you have a WinMain function somewhere?
If you intended to make a console application, you''re going to need a function int main () somewhere, which is your program''s entry point. However, you probably wanted to create a window application, which has the WinMain entry point. Do you have a WinMain function somewhere?
hm ok you''re right! that''s it! i ve forgotten this case :D
--- we hit the highscore ---
Gamag.org
--- coming soon also in english
--- we hit the highscore ---
Gamag.org
--- coming soon also in english
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement