1
General / Still experiencing some problems...
« on: January 17, 2012, 11:55:41 pm »
I am still experiencing the "'SFML/Graphics.hpp' no such file or directory" issue.. any idea how to fix it?
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.
/home/tristan/Code::Blocks/SFML/SFML/main.cpp|1|fatal error: SFML/Graphics.hpp: No such file or directory|
#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("cb.bmp"))
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;
}
, I am getting the following errors:ld||cannot find -lsfml-system|
ld||cannot find -lsfml-audio|
ld||cannot find -lsfml-graphics|
ld||cannot find -lsfml-network|
ld||cannot find -lsfml-window|
ld||cannot find -lsfml-graphics-s|
ld||cannot find -lsfml-audio-s|
ld||cannot find -lsfml-window-s|
ld||cannot find -lsfml-network-s|
ld||cannot find -lsfml-system-s|
ld||cannot find -lsfml-graphics-s|
ld||cannot find -lsfml-audio-s|
ld||cannot find -lsfml-network-s|
ld||cannot find -lsfml-window-s|
ld||cannot find -lsfml-system-s|
||=== Build finished: 15 errors, 0 warnings ===|