Jump to content
  • Advertisement
Sign in to follow this  
sspeedy

one error when compiling Lesson 1

This topic is 4429 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!