[try Beta version]
Not logged in

 
SFML 2

Pages: 123
May 24, 2011 at 4:31pm
I did define SFML_STATIC...

EDIT: Omg this is crazy! Now the release DLL's don't work anymore too!
Only debug DLL's still work...
It says suddenly: Can't find -lsfml-window and the others, while it's ine the same folder as the debug ones...
Last edited on May 24, 2011 at 4:35pm
May 24, 2011 at 4:46pm
So what are the exact names of the library files, and the exact things you are adding to Code::Block's linker list? (Just give one example, e.g. the graphics ones)
May 24, 2011 at 4:53pm
ok.
File name:
sfml-graphics-2.dll (inside the folder of my project)

in C:\MinGW\lib:
libsfml-graphics-d.a
libsfml-graphics-s.a
libsfml-graphics-s-d.a

in Linker:
sfml-graphics-s

EDIT: LOL, writing this I realized I had accidently removed the non debug dynamic version -.-
Dynamics all work!
So now it's down to the statics...
Last edited on May 24, 2011 at 4:58pm
May 24, 2011 at 5:05pm
Can it not find the static libraries, or are you getting unresolved symbols, etc?
May 24, 2011 at 5:10pm
This is what I'm getting:

1
2
3
4
5
6
7
8
9
||=== testt, Release ===|
c:\mingw\bin\..\lib\gcc\i686-pc-mingw32\4.6.0\..\..\..\libsfml-window-s.a(VideoMode.cpp.obj):VideoMode.cpp|| undefined reference to `__gxx_personality_sj0'|
c:\mingw\bin\..\lib\gcc\i686-pc-mingw32\4.6.0\..\..\..\libsfml-window-s.a(VideoMode.cpp.obj):VideoMode.cpp|| undefined reference to `_Unwind_SjLj_Register'|
c:\mingw\bin\..\lib\gcc\i686-pc-mingw32\4.6.0\..\..\..\libsfml-window-s.a(VideoMode.cpp.obj):VideoMode.cpp|| undefined reference to `_Unwind_SjLj_Unregister'|
c:\mingw\bin\..\lib\gcc\i686-pc-mingw32\4.6.0\..\..\..\libsfml-window-s.a(VideoMode.cpp.obj):VideoMode.cpp|| undefined reference to `_Unwind_SjLj_Resume'|
c:\mingw\bin\..\lib\gcc\i686-pc-mingw32\4.6.0\..\..\..\libsfml-window-s.a(Window.cpp.obj):Window.cpp|| undefined reference to `__gxx_personality_sj0'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|  


It keeps repeating the first 4...
May 24, 2011 at 5:35pm
This thread suggests that these errors are caused by your version of g++.
http://www.sfml-dev.org/forum/viewtopic.php?t=3008&sid=5715e823de446ddd6854149b64035e31

It suggests one called "DW2".
May 25, 2011 at 1:32pm
Oh god... YAM (yet another MinGW -.-)
Ah well I guess I'll have to.
But before I change, is it possible that my previous projects (made with the SLJL one) will no longer compile?
May 25, 2011 at 2:07pm
Right. I have looked again at the forum. In fact, you don't necessarily ned the "DW2" one. You just need to use the same version of MinGW to compile SFML as you use to compile your application.

Have you changed your MinGW after building SFML?

is it possible that my previous projects (made with the SLJL one) will no longer compile?

I'm not sure, sorry. Unless they use external libraries compiled with a different one, I don't see why there would be a problem. If there is, you could always swap back.
Last edited on May 25, 2011 at 2:08pm
May 25, 2011 at 3:14pm
I see, I compiled it with a different MinGW. I set up C::B to use that version and BANG! Everything works fine now :D
Thanks dude!
May 25, 2011 at 3:25pm
No problem... I was mostly as lost as you. When I have problems with SFML, it's often difficult to know what to do about them. However, once you're set up, there don't seem to be too many of them ;)
May 25, 2011 at 3:53pm
You know, Laurent should really write a book on SFML 2 once it's out. At the moment there is only very little documentation to be found, except for on the main website.
May 25, 2011 at 4:03pm
I was thinking a book would be good just the other day. Mind you, there aren't many even for SDL.
May 27, 2011 at 5:19am
Well, let's hope there will be for SFML!
He'd make a fortune :p
May 27, 2011 at 5:45am
hey xanders, should I close this account and make a new one with a like name?

note that my name is alex(ander)


May 27, 2011 at 6:42am
It would be good, but you don't really want to destroy your current account do you? You'd have to build your reputation on here all over again.
May 27, 2011 at 10:09pm
Not really, I could make it clear who I was. as for post counts. They mean nothing to me xD

Besides I've been meaning to step away from this pseudonym for some time.
May 28, 2011 at 7:36am
Well it's a cool name, but I guess I shall now happily welcome xander337 to the community XD

We should ask the mods to put a notice somewhere to tell people called "Alex" how to choose their name in the future...
May 28, 2011 at 7:47am
Bahaha, sounds like a splendid idea. And you mean admin. There are no mods, only Twicker.
May 28, 2011 at 8:03am
Yeah I put admin then for god knows what reason I changed it...

There are no mods, only Twicker

How melodramatic :P
May 29, 2011 at 6:29pm
Lol man this is going to get confusing!
For the record, my real name is xander, just xander and no alexander :p
Pages: 123