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

Author Topic: Having a bit of trouble setting up SFML  (Read 3290 times)

0 Members and 2 Guests are viewing this topic.

DaEmperor001

  • Newbie
  • *
  • Posts: 2
    • View Profile
Having a bit of trouble setting up SFML
« on: December 12, 2010, 03:51:13 am »
I've searched the whole internet for an answer, but alas, none are to be found. Could somebody help me with this problem in setting up SFML?

I compiled it, with "2 succeeded, 4 up to date" then under debug configuration I included, in the additional dependencies (under linker and input)
sfml-system-s-d.lib
sfml-window-s-d.lib
sfml-graphics-s-d.lib
sfml-main-d.lib
with debug as the Configuration.
Then with release as the Configuration I put:
sfml-system-s.lib
sfml-window-s.lib
sfml-graphics-s.lib
sfml-main.lib
then in C/C++ general, I put under additional include directories C:\SFML-1.6\include
and finally, when i try to debug with this code


Code: [Select]
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
int main(){
using namespace sf;
RenderWindow Game(VideoMode(800, 600, 32), "SFML Blank Window");
Event Event;
while(Game.IsOpened())
{
while(Game.GetEvent(Event))
{
if(Event.Type == Event::Closed)
{
Game.Close();
}
Game.Clear();
Game.Display();
}
}
return EXIT_SUCCESS;
}

i get this error:
1>LINK : fatal error LNK1104: cannot open file 'sfml-system-s-d.lib'

Can somebody tell me what I'm doing wrong. Thanks :)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Having a bit of trouble setting up SFML
« Reply #1 on: December 12, 2010, 08:39:58 am »
Check again the tutorial.
> have you copied in the right place the *.lib files ?
> have set up your IDE correctly ?
SFML / OS X developer

DaEmperor001

  • Newbie
  • *
  • Posts: 2
    • View Profile
Having a bit of trouble setting up SFML
« Reply #2 on: December 12, 2010, 04:31:53 pm »
Thank you, I changed the include directory and the lib directory, but after that, it wanted window-d.dll, so I copy it into the same file as my executable, and when i try to compile it now, it gives me this!

'CoolKid.exe': Loaded 'C:\Documents and Settings\Kristyn\My Documents\Visual Studio 2010\Projects\CoolKid\Debug\CoolKid.exe', Symbols loaded.
'CoolKid.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'CoolKid.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'CoolKid.exe': Loaded 'C:\Documents and Settings\Kristyn\My Documents\Visual Studio 2010\Projects\CoolKid\Debug\sfml-window-d.dll', Cannot find or open the PDB file
LDR: LdrpWalkImportDescriptor() failed to probe C:\Documents and Settings\Kristyn\my documents\visual studio 2010\Projects\CoolKid\Debug\sfml-window-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[2332] CoolKid.exe: Native' has exited with code -1072365566 (0xc0150002).

I really wish SFML would just work already  :( , but thanks for your help you where a big step forward! :)

 

anything