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.


Topics - L_ermite

Pages: [1]
1
General / A simple complicated error [solved]
« on: December 04, 2013, 09:26:45 pm »
Hello everybody and sorry if my english is bad, but I am French.
Today, my wonderful error seems don't come of a bad installation of the SFML, I explain:

I was do the migration of SFML1.6 to SFML2.0. Is unfortunately, I am in Linux Ubuntu and the last package installable is SFML1.6...
Therefore, I decide to install it no automatically. After have does all operations, I configure code block and try to run the simple example program. This is the errors appear to this:

-------------- Build: Debug in blablasfml ---------------

Compiling: main.cpp
main.cpp: In function ‘int main():
main.cpp:10:16: erreur:class sf::Image’ has no member named ‘LoadFromFile’
main.cpp:12:28: erreur: no matching function for call to ‘sf::Sprite::Sprite(sf::Image&)
main.cpp:12:28: note: candidates are:
/usr/include/SFML/Graphics/Sprite.hpp:78:5: note: sf::Sprite::Sprite(const sf::Texture&, const IntRect&)
/usr/include/SFML/Graphics/Sprite.hpp:78:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/SFML/Graphics/Sprite.hpp:67:14: note: sf::Sprite::Sprite(const sf::Texture&)
/usr/include/SFML/Graphics/Sprite.hpp:67:14: note:   no known conversion for argument 1 from ‘sf::Image’ to ‘const sf::Texture&
/usr/include/SFML/Graphics/Sprite.hpp:57:5: note: sf::Sprite::Sprite()
/usr/include/SFML/Graphics/Sprite.hpp:57:5: note:   candidate expects 0 arguments, 1 provided
/usr/include/SFML/Graphics/Sprite.hpp:47:25: note: sf::Sprite::Sprite(const sf::Sprite&)
/usr/include/SFML/Graphics/Sprite.hpp:47:25: note:   no known conversion for argument 1 from ‘sf::Image’ to ‘const sf::Sprite&
main.cpp:15:16: erreur:class sf::RenderWindow’ has no member named ‘IsOpened’
main.cpp:19:20: erreur:class sf::RenderWindow’ has no member named ‘GetEvent’
main.cpp:22:23: erreur:class sf::Event’ has no member named ‘Type’
main.cpp:23:21: erreur:class sf::RenderWindow’ has no member named ‘Close’
main.cpp:27:13: erreur:class sf::RenderWindow’ has no member named ‘Clear’
main.cpp:30:13: erreur:class sf::RenderWindow’ has no member named ‘Draw’
main.cpp:33:13: erreur:class sf::RenderWindow’ has no member named ‘Display’
Process terminated with status 1 (0 minutes, 2 seconds)
18 errors, 0 warnings

Sorry but befor 2 hours of search, I don't understand the source of this error. Please
enlighten me on the subject. Thank!

Pages: [1]
anything