• Advertisement
Sign in to follow this  

one error when compiling Lesson 1

This topic is 4249 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I got rid of most of the errors by looking at the other thread started by someone who was having compilation issues with msvc 2005. Here's my main error: MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup I also get this error; is this harmless for now? warning C4244: 'return' : conversion from 'WPARAM' to 'int', possible loss of data Just in case someone recommends 'linking' the libraries, this is what the beginning of my program looks like: #include <windows.h> #include <gl\gl.h> #include <gl\glu.h> #include <gl\glaux.h> #pragma comment(lib, "OpenGL32.lib") // #pragma comment(lib, "GLu32.lib") // err.. what's the proper code tag?

Share this post


Link to post
Share on other sites
Advertisement
The error can be fixed by going to "Project->Properties->Configuration Properties->Linker->System->SubSystem" and setting that to "Windows".

The warning can be dealt with by writing return static_cast< int >( msg.wParam );, which tells the compiler that you know that the size of int may be smaller than WPARAM. It is not a problem in this case.

Forum FAQ: Tags.


jfl.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement