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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Charyb

Pages: [1]
1
General / VS C++ Express : SFML Window tutorial
« on: August 21, 2010, 08:00:56 am »
Well I tried doing it like this:
sfml-system.lib sfml-window.lib

I still get the same error.
And yes, both the dlls are with the .exe.

2
General / VS C++ Express : SFML Window tutorial
« on: August 21, 2010, 02:45:39 am »
How do I link two?
sfml-system.lib sfml-window.lib ?
sfml-system.lib, sfml-window.lib ?
sfml-system.lib; sfml-window.lib ?

3
General / VS C++ Express : SFML Window tutorial
« on: August 20, 2010, 10:25:10 pm »
I'm having trouble getting a window to run.
I recently just started out with SFML after learning a series of C++ tutorials and I think I'm ready to tackle this.

However I'm not very experienced when it comes to libraries and linking libraries to the compiler.

I believe I got SFML working for the very first tutorial, but when I got to the window tutorial it all went downhill.

For starters, here is my main.cpp file:
Code: [Select]

#include <SFML/Window.hpp>

int main()
{
sf::Window App(sf::VideoMode(800,600,32), "SFML Window");

bool running = true;
while(running)
{
App.Display();
}

return EXIT_SUCCESS;

}


In the project properties I had this:
Linker -> Input -> Additional Dependencies:
sfml-system.lib

That was from the last tutorial, I figured I needed to change it to:
sfml-window.lib
so I did.

When I compiled, no errors.
When I ran it I got this error:
Quote

Test.exe - System Error
The program can't start because sfml-system.dll is missing from your computer. Try reinstalling the program to fix this problem.


So I figured I needed the sfml-system.dll where my .exe was, which made no sense since I'm not using using system in my code, but I put it in there anyways. But then it occured to me I needed the sfml-window.dll since I am of course using that. After doing that, I ran it again:

Quote

Test.exe - Entry Point Not Found
The procedure entry point ?GetElapsedTime@Clock@sf@@QBEMXZ could not be located in the dynamic link library sfml-system.dll.


No idea what that means.

Pages: [1]
anything