Results 1 to 5 of 5

Thread: Opengl es linkier error

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    21

    Opengl es linkier error

    Hi,

    i made a simple triangle program in opengl es and gave the corresponding libraries path in additional dependencies in linker option of VS 2005 i am including glutes header file and the code is compiling without any error but gives linking errors like however when i use glut.h the program is executing fine:

    can nebody resolve the linking problem :I am stuck man!
    1>main.obj : error LNK2019: unresolved external symbol _glShadeModel@4 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol _glEnableClientState@4 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol _glColorPointer@16 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol _glVertexPointer@16 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol _glClearColor@16 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol _glFlush@0 referenced in function "void __cdecl display(void)" (?display@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol _glDrawArrays@12 referenced in function "void __cdecl display(void)" (?display@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol _glClear@4 referenced in function "void __cdecl display(void)" (?display@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol _glViewport@16 referenced in function "void __cdecl reshape(int,int)" (?reshape@@YAXHH@Z)
    1>main.obj : error LNK2019: unresolved external symbol _glLoadIdentity@0 referenced in function "void __cdecl reshape(int,int)" (?reshape@@YAXHH@Z)
    1>main.obj : error LNK2019: unresolved external symbol _glMatrixMode@4 referenced in function "void __cdecl reshape(int,int)" (?reshape@@YAXHH@Z)
    1>glutes_static.lib(glutes_main.obj) : error LNK2019: unresolved external symbol __imp__eglCreateContext referenced in function ___glCreateContext
    1>glutes_static.lib(glutes_main.obj) : error LNK2019: unresolved external symbol __imp__eglGetError referenced in function ___glCreateContext
    1>glutes_static.lib(glutes_main.obj) : error LNK2019: unresolved external symbol __imp__eglChooseConfig referenced in function ___glCreateContext
    1>glutes_static.lib(glutes_main.obj) : error LNK2019: unresolved external symbol __imp__eglMakeCurrent referenced in function ___glBindContext
    1>glutes_static.lib(glutes_window.obj) : error LNK2001: unresolved external symbol __imp__eglMakeCurrent
    1>glutes_static.lib(glutes_init.obj) : error LNK2001: unresolved external symbol __imp__eglMakeCurrent
    1>glutes_static.lib(glutes_main.obj) : error LNK2019: unresolved external symbol __imp__eglDestroySurface referenced in function ___glDestroySurface
    1>glutes_static.lib(glutes_window.obj) : error LNK2001: unresolved external symbol __imp__eglDestroySurface
    1>glutes_static.lib(glutes_main.obj) : error LNK2019: unresolved external symbol __imp__eglSwapBuffers referenced in function ___glDestroySurface
    1>glutes_static.lib(glutes_menu.obj) : error LNK2001: unresolved external symbol __imp__eglSwapBuffers
    1>glutes_static.lib(glutes_main.obj) : error LNK2019: unresolved external symbol __imp__eglCreatePbufferSurface referenced in function ___glCreateSurface
    1>glutes_static.lib(glutes_main.obj) : error LNK2019: unresolved external symbol __imp__eglCreatePixmapSurface referenced in function ___glCreateSurface
    1>glutes_static.lib(glutes_main.obj) : error LNK2019: unresolved external symbol __imp__eglCreateWindowSurface referenced in function ___glCreateSurface
    1>glutes_static.lib(glutes_init.obj) : error LNK2019: unresolved external symbol __imp__eglInitialize referenced in function ___glInit
    1>glutes_static.lib(glutes_init.obj) : error LNK2019: unresolved external symbol __imp__eglGetDisplay referenced in function ___glInit
    1>glutes_static.lib(glutes_init.obj) : error LNK2019: unresolved external symbol __imp__eglTerminate referenced in function ___glDestroy
    1>D:\VSprojects\opengles1xResize\Debug\opengles1xR esize.exe : fatal error LNK1120: 23 unresolved externals

    THANKS IN ADVANCE

    Regards,
    himanshu

  2. #2
    Junior Member
    Join Date
    Mar 2009
    Posts
    21

    Re: Opengl es linkier error

    Hi All,

    i resolved some of the linker errors out of 28 now linking errors are as follows please help as i am new to opengl es :

    Linking...
    1>main.obj : error LNK2019: unresolved external symbol __imp__glShadeModel@4 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol __imp__glEnableClientState@4 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol __imp__glColorPointer@16 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol __imp__glVertexPointer@16 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol __imp__glLoadIdentity@0 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function "void __cdecl init(void)" (?init@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol __imp__glFlush@0 referenced in function "void __cdecl display(void)" (?display@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol __imp__glDrawArrays@12 referenced in function "void __cdecl display(void)" (?display@@YAXXZ)
    1>main.obj : error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function "void __cdecl display(void)" (?display@@YAXXZ)
    1>D:\VSprojects\opengles1xResize\Debug\opengles1xR esize.exe : fatal error LNK1120: 10 unresolved externals

    please HELP in resolving them too.....THANKS

    Regards,
    himanshu

  3. #3
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: Opengl es linkier error

    Which ES libraries are you using?
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

  4. #4
    Junior Member
    Join Date
    Mar 2009
    Posts
    21

    Re: Opengl es linker error

    Hi Xmas,

    i am using glut|es 1.1 libraries which i downloaded from sourceforge.net the link is :
    http://sourceforge.net/project/showfile ... _id=170950

    still linker errors remain.
    HELP!

    Thanks in Advance
    Himanshu

  5. #5
    Junior Member
    Join Date
    Dec 2008
    Location
    Oslo, Norway
    Posts
    25

    Re: Opengl es linkier error

    glut|es is a glut-implementation, not an OpenGL ES implementation.
    Erik "kusma" Faye-Lund

Similar Threads

  1. openGL Error no: 1280
    By ganesh991 in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 11-20-2008, 03:25 AM
  2. fatal error C1189: #error : ERROR: Use of C runtime library
    By gjermani in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 09-24-2007, 03:02 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
  •