1
C / Re: CSFML & Code::Blocks - cannot find -lcsmfl-graphics
« on: December 20, 2013, 11:21:15 pm »
The Build Messages:
I'm compiling code from CSFML documentation.
I have CSFML library in C:\CSFML-2.1\
In project Build Options I set everything as it is in tutorial (of course I used my path instead of D:\SFML-2.1).
EDIT:
I managed to compile this code. Now I have another errors:
EDIT 2:
I had do include csfml-audio to compile. Now everything is working.
You were wrong. I had to set csfml-window instead of sfml-window to run the code.
Everything is working right. Thank you for your help.
ld.exe||cannot find -lsfml-graphics|
ld.exe||cannot find -lsfml-window|
ld.exe||cannot find -lsfml-system|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 0 seconds) ===|
ld.exe||cannot find -lsfml-window|
ld.exe||cannot find -lsfml-system|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 0 seconds) ===|
I'm compiling code from CSFML documentation.
I have CSFML library in C:\CSFML-2.1\
In project Build Options I set everything as it is in tutorial (of course I used my path instead of D:\SFML-2.1).
EDIT:
I managed to compile this code. Now I have another errors:
obj\Debug\main.o||In function `main':|
C:\Users\Mateusz\Desktop\gtk\SFML\SFMLtest\main.c|32|undefined reference to `_imp__sfMusic_createFromFile'|
C:\Users\Mateusz\Desktop\gtk\SFML\SFMLtest\main.c|36|undefined reference to `_imp__sfMusic_play'|
C:\Users\Mateusz\Desktop\gtk\SFML\SFMLtest\main.c|57|undefined reference to `_imp__sfMusic_destroy'|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 3 seconds) ===|
C:\Users\Mateusz\Desktop\gtk\SFML\SFMLtest\main.c|32|undefined reference to `_imp__sfMusic_createFromFile'|
C:\Users\Mateusz\Desktop\gtk\SFML\SFMLtest\main.c|36|undefined reference to `_imp__sfMusic_play'|
C:\Users\Mateusz\Desktop\gtk\SFML\SFMLtest\main.c|57|undefined reference to `_imp__sfMusic_destroy'|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 3 seconds) ===|
EDIT 2:
I had do include csfml-audio to compile. Now everything is working.
You were wrong. I had to set csfml-window instead of sfml-window to run the code.
Everything is working right. Thank you for your help.