Archived

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

Nullio

Linker Error

Recommended Posts

  
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/NullEngine.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
  
what does that mean?????, is there a list of linker errors and what they mean?

Share this post


Link to post
Share on other sites
No.
It most likely wants a main() because your project is a Win32 Console App, instead of a ''normal'' Win32 app.

Share this post


Link to post
Share on other sites
quote:
Original post by Nullio
is there a list of linker errors and what they mean?

Yes. it''s in MSDN. If you have MSVC and the MSDN Library installed, highlight the error code in the output pane and hit F1. otherwise, you''ll have to search MSDN Library Online.

[ GDNet Start Here | GDNet FAQ | MS RTFM | STL | Google ]
Thanks to Kylotan for the idea!

Share this post


Link to post
Share on other sites
Ok then, where in a project settings is the ability to tell the compiler it is a win32 application and not a console application??


(I''m using Micro$oft visual c++)

Share this post


Link to post
Share on other sites
quote:
Original post by Martee
No.
It most likely wants a main() because your project is a Win32 Console App, instead of a ''normal'' Win32 app.



You know, main() is normal for C++, WinMain() isn''t.
When you choose to create a Win32 app, my guess is that VC++ links to a main() function that basically calls WinMain()

Share this post


Link to post
Share on other sites