1
General / Help with setting up Code::Blocks project
« on: May 14, 2017, 12:45:54 pm »
I've been trying to create an SFML project on Code::Blocks for the whole day now, and I'm really out of ideas, been researching the internet for a lot. I keep getting some error, regardless of how I tune the settings. Here's the errors I'm currently getting (there are 42 lines exactly, they're all similar but different reference):
Here are the versions I have currently downloaded:
Code::Blocks 16.01
http://www.codeblocks.org/downloads/26
Windows
codeblocks-16.01mingw-setup.exe
SFML 2.4.2
https://www.sfml-dev.org/download/sfml/2.4.2/
Windows
GCC 4.9.2 TDM (SJLJ) - 32-bit
I originally tried the MinGW SFML version, but it gave some linker errors, and I read somewhere that you're supposed to use the TDM (SJLJ) version instead.
Here are my project's current settings:
Search directories (Global)
#defines (Global)
Linker settings (Debug)
Linker settings (Release)
I've tried messing around with the order and stuff, nothing seems to work any ideas?
D:\SFML-2.4.2\lib\libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp|| undefined reference to `glClearColor@16'|
D:\SFML-2.4.2\lib\libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp|| undefined reference to `glMatrixMode@4'|
D:\SFML-2.4.2\lib\libsfml-graphics-s.a(RenderTarget.cpp.obj):RenderTarget.cpp|| undefined reference to `glMatrixMode@4'|
Here are the versions I have currently downloaded:
Code::Blocks 16.01
http://www.codeblocks.org/downloads/26
Windows
codeblocks-16.01mingw-setup.exe
SFML 2.4.2
https://www.sfml-dev.org/download/sfml/2.4.2/
Windows
GCC 4.9.2 TDM (SJLJ) - 32-bit
I originally tried the MinGW SFML version, but it gave some linker errors, and I read somewhere that you're supposed to use the TDM (SJLJ) version instead.
Here are my project's current settings:
Search directories (Global)
#defines (Global)
Linker settings (Debug)
Linker settings (Release)
I've tried messing around with the order and stuff, nothing seems to work any ideas?