SFML community forums
Help => General => Topic started by: Wqer on November 19, 2013, 09:35:35 pm
-
.
-
You're doing it wrong.
http://gaoth.org/?p=196 or google SFML+Eclipse
-
Remove the lib prefix. You also might want to read up on how a compiler and linker work, it's crucial for development. ;)
-
Yes, but it seems like your libs are not compatible with your linker. You need to make sure that the libs fully match the use compiler, thus since you use 4.8.1 you can't use any precompiled libs from the download site, but you'll need to compile SFML on your own.
Here (http://en.sfml-dev.org/forums/index.php?topic=7281.msg48091#msg48091)'s a relatively nice description on what a compiler and linker does.
-
i didn't saw your pictures correctly
firstly, remove lib prefix
secondly, maybe the libraries are incompatible with your linker
in my idea, recompile them in order to fix this issue
-
Unfortunately images are bound to be deleted with time.
Not if you pay for the hosting - you can even embed the images! ;)
(http://i.imgur.com/9Cl7fmx.png)
-
I haven't worked with eclipse
but If you are using GCC, make sure the libraries don't have lib prefix and must not have .a suffix
for example, we want to link SFML-system
in your linker settings (project settings->linker in code::blocks), add this:
sfml-system-s
and compile
the linker automaticly find's libsfml-system-s.a
and in my idea, copy and paste the text
because I can't see well
-
I can't see the images well
but I've sed that
please copy and paste the errors here
-
Try it without the .a suffix
-
as I've previously said, you can't plase .a at the end of the libraries while you are linking
-
Nothing, it's just sfml-graphics, sfml-window, sfml-system, etc
The linker will know what extension to look for. ;)
-
The linking order is important, it needs to be graphics, window, audio, network, system.
You can remember it, by thinking "graphics depends on window and system" / "audio depends on system" / "network depends on system".
-
Like this?
Why not just try it, but yes. ;)
-
It didn't work.
Let me get my crystal ball, maybe it will tell me what didn't work................. ::)
-
Try adding opengl32 to the linker list.
-
Try adding opengl32 to the linker list.
It looks like the opengl32 lib is missing, but why does he need it? I thought thats only needed if linked statically?
-
It looks like the opengl32 lib is missing, but why does he need it? I thought thats only needed if linked statically?
Not really sure either... :-\
Maybe there's an issue that goes deeper, but for now, that's all I can see/think of. ;)
-
link with opengl32 and glu32
and define SFML_STATIC while you are compiling with static SFML libraries
in other link options, add -static-libgcc and -static-libstdc++ while you are compiling with static libraries
link with OpenAL32 and sndfile while you are using sfml-audio
-
He's not compiling static... ;)
-
He's not compiling static... ;)
so, he doesn't need to define SFML_STATIC and he must not use -static-libgcc and -static-libstdc++ in the linker commands while linking
-
Furthermore, what is this strange beeping noise coming from my computer? It only happens when a SFML program is running and this was the case for other implementations of SFML on this computer as well.
Is there also some weird output on the console? It's probably still a wrong configuration issue. Make sure you don't mix debug/release or anything else that might be incompatible.
-
yes, when you are compiling for debug build of your application, you have to use the libraries that have -d.a suffix
but, when you are compiling for your release build, you don't need to use the debug libraries