Results 1 to 3 of 3

Thread: Tried to build the sphere example that came with the sdk and got errors

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    California USA
    Posts
    8

    Tried to build the sphere example that came with the sdk and got errors

    Any idea what I did wrong? These were the errors: (Thanks!)

    --------------------Configuration: sphere - Win32 Debug--------------------
    Linking...
    sphere.obj : error LNK2001: unresolved external symbol __imp__glFinish@0
    sphere.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
    sphere.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
    sphere.obj : error LNK2001: unresolved external symbol __imp__glDisableClientState@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glNormalPointer@12
    sphere.obj : error LNK2001: unresolved external symbol __imp__glVertexPointer@16
    sphere.obj : error LNK2001: unresolved external symbol __imp__glEnableClientState@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__wglGetProcAddress@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glGetString@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
    sphere.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glClear@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glMaterialf@12
    sphere.obj : error LNK2001: unresolved external symbol __imp__glMaterialfv@12
    sphere.obj : error LNK2001: unresolved external symbol __imp__glLightfv@12
    sphere.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12
    sphere.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
    sphere.obj : error LNK2001: unresolved external symbol __imp__glFrustum@48
    sphere.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
    sphere.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
    sphere.obj : error LNK2001: unresolved external symbol __imp__glDrawElements@16
    sphere.obj : error LNK2001: unresolved external symbol __imp__glInterleavedArrays@12
    sphere.obj : error LNK2001: unresolved external symbol __imp__glArrayElement@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glDrawArrays@12
    sphere.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
    sphere.obj : error LNK2001: unresolved external symbol __imp__glVertex3fv@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glNormal3fv@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
    sphere.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16
    LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    Debug/sphere.exe : fatal error LNK1120: 35 unresolved externals
    Error executing link.exe.

    sphere.exe - 36 error(s), 0 warning(s)

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: Tried to build the sphere example that came with the sdk and got errors

    You have to go in your project settings.

    then go the link tab and add:

    opengl32.lib, glu32.lib, glaux32.lib

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    California USA
    Posts
    8

    Re: Tried to build the sphere example that came with the sdk and got errors

    Ok, thanks!

Similar Threads

  1. Replies: 1
    Last Post: 05-01-2015, 03:33 PM
  2. Refinery JavaSrc build errors
    By geolycosa in forum COLLADA
    Replies: 5
    Last Post: 10-05-2007, 08:10 PM
  3. Build Errors on Visual C++
    By FlashGL in forum OpenGL: Windows
    Replies: 1
    Last Post: 01-25-2006, 05:22 AM
  4. Replies: 0
    Last Post: 11-09-2005, 10:24 PM
  5. Maya plug-in build errors
    By os in forum COLLADA
    Replies: 2
    Last Post: 09-03-2004, 09:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean