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 - KungWilliam

Pages: [1]
1
General / Re: SOLVED cannot fin -lsfml-graphics
« on: June 13, 2017, 04:14:18 pm »
hehehe

fixed it myself.

removed SFML 2.3.2 then sudo aptg-get autoremove and installed it again..

2
General / SOLVED cannot fin -lsfml-graphics
« on: June 13, 2017, 03:53:06 pm »
Hi!
When I compile with the line: g++ Game.o player_class.o platform.o game_class.o health_class.o weapons.o projectile.o Menu.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-network -lsfml-system

I get the message:
/usr/bin/ld: cannot find -lsfml-graphics
/usr/bin/ld: cannot find -lsfml-window
/usr/bin/ld: cannot find -lsfml-audio
/usr/bin/ld: cannot find -lsfml-network
/usr/bin/ld: cannot find -lsfml-system
collect2: error: ld returned 1 exit status

I use Ubuntu 16.04

I had problems updating to SFML 2.4.2 (did it with cmake, the real problem was linking the libraries afterwards), but I then removed SFML (this is where I believe the problem occured, since i could'nt use sudo make uninstall i manally deleted the files from /usr/include, lib and share)  I then reinstalled SFML 2.3.2 with the command:

sudo apt-get install libsfml-dev

now when I try to compile i get the message posted above.

I'd appreciate any suggestions.

Pages: [1]