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

Author Topic: Image.LoadFromFile("sprite.tga") Won't load the im  (Read 30117 times)

0 Members and 1 Guest are viewing this topic.

gigetto

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Image.LoadFromFile("sprite.tga") Won't load th
« Reply #30 on: September 08, 2007, 10:24:44 pm »
Quote from: "maninboots"
Hello!  I'm new to SFML but so far it looks great, except that I can't get my images to load properly.
The program Builds just fine but it always returns the "Failed to load image from file" error.


I get the same error if I use release libraries in debug mode. To be honest it should not make a difference, but it does.
My problem is that I cannot build the release vesion of my app because I get:

fatal error C1047: The object or library file 'D:\SFML-1.0\lib\vc2005\static\sfml-window.lib' was created with an older compiler than other objects; rebuild old objects and libraries

What should I do?

Pwndja

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
I know how to resolve on of your warnings
« Reply #31 on: September 17, 2007, 03:37:09 am »
this warning:
 Warning   2   warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library   test01SFML  


if you go to this web site there is a table of libs which you can enter in one of your properties menus to turn off some libs which conflict with sfml libs..

http://www.stanford.edu/~yljiang/pages/GPRS%20Linking%20Warning.htm

copy the apropriate line of libs and paste them into ignore specific libs, which can be found in project->properties->linker->input