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

Author Topic: Code Blocks unable to find lsfml graphics, window, and system on Ubuntu 12.04  (Read 2164 times)

0 Members and 1 Guest are viewing this topic.

santi10

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
I'm running Ubuntu 12.04 lts and using Code Blocks as the IDE. The problem i have is that Code blocks can't find the graphic, window, and system. This is the error i get in Code Blocks. I just need help fixing this small problem. I'm knew to sfml and linux. Sorry for the inconvenience. I'm using sfml 1.6.


ld||cannot find -l-lsfml-graphics|
ld||cannot find -l-lsfml-window|
ld||cannot find -l-lsfml-system|
||=== Build finished: 3 errors, 0 warnings ===|

here are the linker settings
linker: /media/01CDAA564F8AFAB0/SFML-1.6/lib
compiler: /media/01CDAA564F8AFAB0/SFML-1.6/include

here are the build options
Linker Settings: -lsfml-graphics
                             -lsfml-window
                             -lsfml-system

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Just read the official tutorials, it's all explained there... ::)

-l-lsfml-graphics
-lsfml-graphics

What could be the mistake here... :O

Also I strongly advise you against the use of SFML 1.6, it's over 2y old, contains quite a few nasty bugs and lacks a lot of new features.
« Last Edit: October 21, 2012, 10:41:39 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

santi10

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Thank you i will follow your advice!