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

Author Topic: Compling & Running error  (Read 1011 times)

0 Members and 2 Guests are viewing this topic.

sYCH3L

  • Newbie
  • *
  • Posts: 1
    • View Profile
Compling & Running error
« on: June 24, 2013, 06:07:18 pm »
Hello!

So i recompiled SFML

i started to compile my program

Quote
g++ -c main.cpp
- no errors

Quote
g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system
- no errors

trying to run my program
Quote
./sfml-app
- 1  error
Quote
./sfml-app: error while loading shared libraries: libsfml-graphics.so.2: cannot open shared object file: No such file or directory

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Re: Compling & Running error
« Reply #1 on: June 24, 2013, 07:07:51 pm »
Quote
./sfml-app: error while loading shared libraries: libsfml-graphics.so.2: cannot open shared object file: No such file or directory
I always wonder why people don't understand that error... ::)
If it can't be opened, it can't be found and if it can't be found the shared libraries or not at the right place or the search paths doesn't have that one path. :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything