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

Author Topic: error with codeblocks  (Read 2421 times)

0 Members and 1 Guest are viewing this topic.

korthaci

  • Newbie
  • *
  • Posts: 1
    • View Profile
error with codeblocks
« on: February 07, 2020, 09:01:47 pm »
Hello,
I am try install sfml on codeblocks. I did everything like article here. did not work. again i search other article and video tutorial and again not working. i did try ten times minimum. i fail. i want see the result.
i add error messages here.
in the error message: D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp , D:\Programming\..... have not on my computer.
i am patzer.
can you help me?

||=== Build: Debug in sfml (compiler: GNU GCC Compiler) ===|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget5clearERKNS_5ColorE':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|152|undefined reference to `glClearColor@16'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|153|undefined reference to `glClear@4'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget4drawEPKNS_6VertexEjNS_13PrimitiveTypeERKNS_12RenderStatesE':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|286|undefined reference to `glEnableClientState@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|288|undefined reference to `glDisableClientState@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|301|undefined reference to `glVertexPointer@16'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|302|undefined reference to `glColorPointer@16'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|304|undefined reference to `glTexCoordPointer@16'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|311|undefined reference to `glTexCoordPointer@16'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget4drawERKNS_12VertexBufferEjjRKNS_12RenderStatesE':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|371|undefined reference to `glEnableClientState@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|373|undefined reference to `glVertexPointer@16'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|374|undefined reference to `glColorPointer@16'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|375|undefined reference to `glTexCoordPointer@16'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget12pushGLStatesEv':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|437|undefined reference to `glGetError@0'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|447|undefined reference to `glPushClientAttrib@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|448|undefined reference to `glPushAttrib@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|450|undefined reference to `glMatrixMode@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|451|undefined reference to `glPushMatrix@0'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|452|undefined reference to `glMatrixMode@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|453|undefined reference to `glPushMatrix@0'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|454|undefined reference to `glMatrixMode@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|455|undefined reference to `glPushMatrix@0'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget11popGLStatesEv':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|467|undefined reference to `glMatrixMode@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|468|undefined reference to `glPopMatrix@0'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|469|undefined reference to `glMatrixMode@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|470|undefined reference to `glPopMatrix@0'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|471|undefined reference to `glMatrixMode@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|472|undefined reference to `glPopMatrix@0'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|474|undefined reference to `glPopClientAttrib@0'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|475|undefined reference to `glPopAttrib@0'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget13resetGLStatesEv':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|507|undefined reference to `glDisable@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|508|undefined reference to `glDisable@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|509|undefined reference to `glDisable@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|510|undefined reference to `glDisable@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|511|undefined reference to `glEnable@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|512|undefined reference to `glEnable@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|513|undefined reference to `glMatrixMode@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|514|undefined reference to `glLoadIdentity@0'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|515|undefined reference to `glEnableClientState@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|516|undefined reference to `glEnableClientState@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|517|undefined reference to `glEnableClientState@4'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget16applyCurrentViewEv':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|563|undefined reference to `glViewport@16'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|566|undefined reference to `glMatrixMode@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|567|undefined reference to `glLoadMatrixf@4'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|570|undefined reference to `glMatrixMode@4'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget14applyBlendModeERKNS_9BlendModeE':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|588|undefined reference to `glBlendFunc@8'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget14applyTransformERKNS_9TransformE':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|630|undefined reference to `glLoadIdentity@0'|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|632|undefined reference to `glLoadMatrixf@4'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget9setupDrawEbRKNS_12RenderStatesE':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|663|undefined reference to `glLoadIdentity@0'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTarget.cpp.obj)||In function `ZN2sf12RenderTarget14drawPrimitivesENS_13PrimitiveTypeEjj':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTarget.cpp|711|undefined reference to `glDrawArrays@12'|
C:\SFML251\lib\libsfml-graphics-s-d.a(RenderTextureImplFBO.cpp.obj)||In function `ZN2sf4priv20RenderTextureImplFBO27getMaximumAntialiasingLevelEv':|
D:\Programming\C++\Releases\_Sources\SFML\src\SFML\Graphics\RenderTextureImplFBO.cpp|197|undefined reference to `glGetIntegerv@8'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
 

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: error with codeblocks
« Reply #1 on: February 07, 2020, 09:56:12 pm »
You need to link SFML's dependencies when you link SFML statically, including OpenGL
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything