Jump to content
  • Advertisement
Sign in to follow this  
Rioghasarig

Problem with OpenGL

This topic is 3729 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 was trying to compile the source code on a tutorial CD I got for OpenGL. (From Beginning OpenGL by Dave Astle). The tutorials worked just fine until I got up to the chapter about lighting. If you try to make a call to timeGetTime()(which he used to rotate a lit cube) the compiler would return a linker error like: error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function _WinMain@16 I linked both opengl32.lib and glu32.lib to the project (and that worked for all the other tutorials) so I can't quite figure out what's wrong. Any help would be appreciated. Edit: I tried using time(NULL) instead of timeGetTime() but that makes the cube rotate REALLY slowly. ;>_>

Share this post


Link to post
Share on other sites
Advertisement
timeGetTime() works only on Windows I believe, make sure you have the right includes and libraries for compiling it.

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!