SFML community forums
Help => General => Topic started by: Shout on May 30, 2013, 01:25:23 pm
-
Hi,
Just signed up to the forums because I'm having problems getting SFML in CB under Windows to work properly, even compiling, building and running the example code (under the SFML 2.0 initial tutorial) is not working. I've attached what it's throwing back.
I've tried using all three of the libraries (SJLJ 32, SJLJ 64 and DW2) and none of them make a difference, so it appears as though it's something I'm failing at. I've properly pointed CB build options to the correct places (include/lib under SFML project > Search Directories > Compiler/Linker) and specified the Link libraries (Release > Linker settings > Link libraries > sfml-graphics/window/system) and tried defining the project as static under Compiler settings, but it's still throwing me back.
I must be doing something stupid or overlooking a small detail. Anyone have any ideas? Thanks.
[attachment deleted by admin]
-
It seems like you link to static libraries (sfml-xxx-s) but didn't define SFML_STATIC.
-
SFML_STATIC under #defines under Compiler settings under root project.
No change, I'm afraid.
-
Upload your project file, it will be faster than asking tons of questions about how you configured your project ;)
-
Probably for the best. Here:
http://db.tt/uwLlGTQL
-
Well Dropbox is giving me 503, so have another link:
https://mega.co.nz/#!YE5AjRBZ!DNE5HiiTtcv7FFbUGCnzPRCEfClk5cDy70FwbxINaeo
-
Your project is empty, there's no reference to any SFML path or library.
-
Let's try this again:
https://mega.co.nz/#!oZwTGIyZ!ME0-eE2SnXIOKmAHDBfQYQ9bM_0rXZ6KZkriOGy61lM
-
You only link to SFML libs in your Release configuration, the Debug one links to nothing. And you define the SFML_STATIC flag but link to the dynamic libraries.
Please read the tutorial carefully and don't mix everything.
-
I haven't done anything with the Debug, I've used the Link libraries under Release.
-
Ok, all the Linker settings under the project (Debug and Release) point to sfml-graphics/window/system. Search directories point to include/lib in compiler/linker under Debug and Release. SFML_STATIC or otherwise, still I'm getting the same error. What else am I doing wrong?
https://mega.co.nz/#!NR5DhTyB!ZOTDu01OXGBbAoeb0GffpQ4fVkB3T4QcSmCEoYdu6tA
I'm banging my head against a brick wall.
-
You're still doing everything wrong. Why don't you just follow the tutorial quietly and step by step? What is described there is not what you have in your project, there are still several mistakes.
I have the feeling that you're frustrated and try to "fix" your project by adding/removing random stuff, instead or following what is said in the tutorial (come on, there are even screenshots of every step). Restart from scratch if it helps ;)
PS: you can paste the contents of your .cbp file directly in your posts instead of uploading your whole project, it's just a tiny XML file.
-
Gone through the tutorial once again, followed the steps, copied the DLLs over, almost done. Now I'm hit with this problem. Any advice?
[attachment deleted by admin]
-
Great :)
Now it seems that you downloaded the wrong package of SFML. Which one did you try this time? Can you open a console, navigate to your mingw/bin directory, type "gcc -v" and copy the output here?
And you only have one version of gcc installed, right?
-
TDM (SJLJ) 64 bit version. This is what I get:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.6.2/configure --enable-languages=c,c++,ada,fortran,obj
c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo
mp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-r
untime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.6.2 (GCC)
I don't know if I have more than one version of gcc installed. How would I check/get rid of the conflicting version?
This is so much simpler on Linux..
-
You have a gcc 4.6. All the downloads are for gcc 4.7, which is unfortunately not compatible with gcc 4.6. You must either recompile SFML or upgrade your compiler.