SFML community forums
Help => System => Topic started by: Grimshaw on February 06, 2011, 07:41:59 pm
-
I compiled sfml2 for mingw as static, and now i am trying to build my project in code::blocks under windows.
In the final step, when linking, ld returns 1, and the linking fails.
warning: ..\..\extlibs\libs-gcc/libsfml-window-s.a(dyajs00314.o): local symbol `' has no section
Anyone knows what this is?
Thanks
-
No sorry, this is the first time I see this error, and using MiGW static libraries works fine for me. Did you ask Google what this error means?
-
I was able to compile the project, mingw is such a mess, what the hell.
Question:
I built a DLL, which links sfml-graphics-s, etc.
That means that linking against that dll cuts the need to link for sfml right?
In Visual studio this works fine, sfml is inside the DLL file, and it works without linking sfml for every app which uses my dll.
I wrote a test application and it says undefined reference to the sfml stuff, even tough i link the DLL, whats wrong?
-
I built a DLL, which links sfml-graphics-s, etc.
That means that linking against that dll cuts the need to link for sfml right?
Nop. Although your DLL contains the SFML function, it doesn't export them and your client application cannot load them from it. If you use SFML from two separate binaries, you should link to the dynamic version to avoid duplicating SFML modules in the same application.
-
Understood.
Thanks a lot for the help :)