• Advertisement
Sign in to follow this  

Problem with OpenGL

This topic is 3576 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