1
General / missing -l-lfsml-system?
« on: April 24, 2011, 07:19:01 pm »
i did copy it manually yes sry for the slow reply, got hung up on working 12 hours a day
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.
#include <SFML/Graphics.hpp>
int main()
{
// Create the main window
sf::RenderWindow App(sf::VideoMode(800, 600), "SFML window");
// Load a sprite to display
sf::Image Image;
if (!Image.LoadFromFile("tux.jpg")) // <- save an image on your computer
return EXIT_FAILURE;
sf::Sprite Sprite(Image);
// Start the game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
// Clear screen
App.Clear();
// Draw the sprite
App.Draw(Sprite);
// Update the window
App.Display();
}
return EXIT_SUCCESS;
}
Quote from: "seerex"That makes any sense to you?Yes. When you link dynamically, you must tell your application where the dynamic libraries (in your case the .dll files) are located. You could set this globally in the PATH environment variable, or you could move the SFML .dll files to C:/Windows/System32 or your executable directory.
For sf::Clock, the sfml-system library is enough. However, the correct linker flag is -lsfml-system and not -isfml-system.