SFML community forums
Help => Graphics => Topic started by: Mad_Ninja on December 03, 2007, 05:12:13 pm
-
when I compile my project in debug, everything works fine.
additional dependencies:
sfml-graphics-d.lib sfml-main-d.lib sfml-system-d.lib sfml-window-d.lib
then in release I have:
sfml-graphics.lib sfml-window.lib sfml-system.lib sfml-main.lib
but when I compile in release I get:
fatal error C1047: The object or library file /../ sfml-graphics.lib was created with an older compiler than other objects; rebuild old objects and libraries
I use Visual Studio 2005
-
Recompile the sfml-binaries on your own, it should work fine then.
-
awesome, it worked!
-
Are you using Visual Studio 2005 SP1 or Visual Studio 2008 ? Anyway, I've removed a project option which should remove this stupid error in the future.
-
Hello,
I try the example from the wiki
"http://www.sfml-dev.org/wiki/en/tutorials/cegui", but I don't find the *.lib-files.
I use theBlock-Code-IDE, sfml- SDK 1.5 and CEGUI-SDK-0.6.1-vc9.
The errors:
Compiling: src\GUIManager.cpp
Compiling: src\Main.cpp
Compiling: src\App.cpp
Linking executable: bin\sfmlCEGUI_Debug Win32.exe
mingw32-g++.exe: sfml-graphics.lib: No such file or directory
mingw32-g++.exe: sfml-main.lib: No such file or directory
mingw32-g++.exe: sfml-system.lib: No such file or directory
mingw32-g++.exe: sfml-window.lib: No such file or directory
mingw32-g++.exe: glu32.lib: No such file or directory
mingw32-g++.exe: pcre.lib: No such file or directory
mingw32-g++.exe: CEGUIBase_Static.lib: No such file or directory
mingw32-g++.exe: CEGUIExpatParser_Static.lib: No such file or directory
mingw32-g++.exe: expat.lib: No such file or directory
mingw32-g++.exe: CEGUISILLYImageCodec_Static.lib: No such file or directory
mingw32-g++.exe: SILLY.lib: No such file or directory
mingw32-g++.exe: OpenGLGUIRenderer_Static.lib: No such file or directory
mingw32-g++.exe: CEGUIFalagardWRBase_Static.lib: No such file or directory
Process terminated with status 1 (0 minutes, 10 seconds)
0 errors, 0 warnings
Does somebody have an idea? :oops:
thanks, johannes.
-
Install the libs.
-
Hello Hiura,
this is my question. I don't find *.lib files, not in .\SFML-1.5\lib\mingw (or in..\SFML-1.5\ ) :?: and no libraries for download.
tschau, Johanes
-
They are in SFML-1.5/lib/VC2005. If this directory doesn't exist, then you have downloaded the wrong archive.
-
Hi,
but I use CodeBlocks :shock: . Can I use the libs from vc2xxx?
I use theBlock-Code-IDE (codeblocks-8.02mingw-setup.exe), sfml- SDK 1.5 (SFML-1.5-sdk-windows-mingw.zip) and CEGUI-SDK-0.6.1-vc9.
tschau, johannes.
-
Ah, sorry. That's because you hijacked someone else's thread, who uses VC++ ;)
If you use Code::Blocks with MinGW then you must use .a files, .lib are for VC++.
-
Sorry, I am back with the old problems. :( . My new installation:
1)
C:\CodeBlocks
C:\CodeBlocks\CEGUI-0.6.1
C:\CodeBlocks\MinGW
C:\CodeBlocks\SFML-1.5
Then I follow the tutorial "http://www.sfml-dev.org/tutorials/1.5/start-cb.php" and the example works.
((2) copied *.a files from C:\CodeBlocks\SFML-1.5\lib\mingw->
-> C:\CodeBlocks\MinGW\lib
and C:\CodeBlocks\SFML-1.5\include\SFML ->
C:\CodeBlocks\MinGW\include )
3) C:\CodeBlocks\CEGUI-SDK-0.6.1-vc9
then I try the example "Using CEGUI in SFML" step by step and can't compile because the *.lib files were not found. (also with the *.zip from dewyatt ).
Can somebody say me which steps I have taken wrong? Does I have to copy other files too?
tschau, johannes
-
Forget about .lib files, you must use .a files for Code::Blocks/MinGW. So I guess you have to download the MinGW libraries of CeGUI.