Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Solved] OpenGL Failing on compile  (Read 4711 times)

0 Members and 1 Guest are viewing this topic.

Sakurazaki

  • Newbie
  • *
  • Posts: 31
  • `お嬢様を守ります!
    • MSN Messenger - sakurazaki.setsunita@gmail.com
    • View Profile
[Solved] OpenGL Failing on compile
« on: June 06, 2013, 02:40:49 am »
Hello there,

I've got several classes using #include <SFML/OpenGL.hpp> but when compiling I get 19 linking errors:

1>AABB.obj : error LNK2001: unresolved external symbol __imp__glVertex2f@8
1>AABB.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
1>AABB.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
1>Color3f.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
1>ConvexHull.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12
1>ConvexHull.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12
1>EmissiveLight.obj : error LNK2001: unresolved external symbol __imp__glColor4f@16
1>EmissiveLight.obj : error LNK2001: unresolved external symbol __imp__glPopMatrix@0
1>EmissiveLight.obj : error LNK2001: unresolved external symbol __imp__glPushMatrix@0
1>EmissiveLight.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16
1>EmissiveLight.obj : error LNK2001: unresolved external symbol __imp__glTexCoord2i@8
1>Light.obj : error LNK2001: unresolved external symbol __imp__glOrtho@48
1>Light.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
1>Light.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
1>Light.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
1>Light.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
1>LightSystem.obj : error LNK2001: unresolved external symbol __imp__glColor4b@16
1>LightSystem.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
1>LightSystem.obj : error LNK2001: unresolved external symbol __imp__glBlendFunc@8

Everything seems to be something about OpenGL.

I'm using SFML 2.0 + SFGUI + C++11 on MSVS2012.
I'm  using Release configuration with SFML included folder and libraries, using the proper libs and proper dlls.

Am I missing something?

Thanks!
« Last Edit: June 06, 2013, 12:07:07 pm by Sakurazaki »
こんな私も変われるのならもし変われるのなら白になる

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: OpenGL Failing on compile
« Reply #1 on: June 06, 2013, 02:47:11 am »
Did you link to opengl?
Back to C++ gamedev with SFML in May 2023

Sakurazaki

  • Newbie
  • *
  • Posts: 31
  • `お嬢様を守ります!
    • MSN Messenger - sakurazaki.setsunita@gmail.com
    • View Profile
Re: OpenGL Failing on compile
« Reply #2 on: June 06, 2013, 03:05:16 am »
Did you link to opengl?

Edit: No I haven't. Which are the libs and dlls I have to include? Are there listed anywhere?

Thanks!
« Last Edit: June 06, 2013, 03:08:51 am by Sakurazaki »
こんな私も変われるのならもし変われるのなら白になる

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Back to C++ gamedev with SFML in May 2023

Sakurazaki

  • Newbie
  • *
  • Posts: 31
  • `お嬢様を守ります!
    • MSN Messenger - sakurazaki.setsunita@gmail.com
    • View Profile
Re: OpenGL Failing on compile
« Reply #4 on: June 06, 2013, 12:06:56 pm »
Done thanks :)
こんな私も変われるのならもし変われるのなら白になる

 

anything