Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sfml-graphics.lib  (Read 5137 times)

0 Members and 1 Guest are viewing this topic.

Mad_Ninja

  • Newbie
  • *
  • Posts: 6
    • View Profile
sfml-graphics.lib
« on: December 03, 2007, 05:12:13 pm »
when I compile my project in debug, everything works fine.

additional dependencies:
Code: [Select]
sfml-graphics-d.lib sfml-main-d.lib sfml-system-d.lib sfml-window-d.lib

then in release I have:
Code: [Select]
sfml-graphics.lib sfml-window.lib sfml-system.lib  sfml-main.lib

but when I compile in release I get:
Code: [Select]
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

Avency

  • Full Member
  • ***
  • Posts: 113
    • View Profile
sfml-graphics.lib
« Reply #1 on: December 03, 2007, 06:02:33 pm »
Recompile the sfml-binaries on your own, it should work fine then.

Mad_Ninja

  • Newbie
  • *
  • Posts: 6
    • View Profile
sfml-graphics.lib
« Reply #2 on: December 03, 2007, 08:17:25 pm »
awesome, it worked!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
sfml-graphics.lib
« Reply #3 on: December 04, 2007, 02:50:00 am »
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.
Laurent Gomila - SFML developer

johannes

  • Newbie
  • *
  • Posts: 4
    • View Profile
sfml-graphics.lib
« Reply #4 on: December 07, 2009, 03:53:23 pm »
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.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
sfml-graphics.lib
« Reply #5 on: December 07, 2009, 04:46:01 pm »
Install the libs.
SFML / OS X developer

johannes

  • Newbie
  • *
  • Posts: 4
    • View Profile
sfml-graphics.lib
« Reply #6 on: December 07, 2009, 05:09:36 pm »
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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
sfml-graphics.lib
« Reply #7 on: December 07, 2009, 05:22:36 pm »
They are in SFML-1.5/lib/VC2005. If this directory doesn't exist, then you have downloaded the wrong archive.
Laurent Gomila - SFML developer

johannes

  • Newbie
  • *
  • Posts: 4
    • View Profile
sfml-graphics.lib
« Reply #8 on: December 07, 2009, 05:28:32 pm »
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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
sfml-graphics.lib
« Reply #9 on: December 07, 2009, 06:17:01 pm »
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++.
Laurent Gomila - SFML developer

johannes

  • Newbie
  • *
  • Posts: 4
    • View Profile
sfml-graphics.lib
« Reply #10 on: December 12, 2009, 07:09:26 pm »
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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
sfml-graphics.lib
« Reply #11 on: December 12, 2009, 07:16:24 pm »
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.
Laurent Gomila - SFML developer