Archived

This topic is now archived and is closed to further replies.

Shilpa G

Linking Error

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites