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

Author Topic: makefile error?  (Read 2246 times)

0 Members and 1 Guest are viewing this topic.

udaniel

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
makefile error?
« on: April 19, 2021, 04:45:28 pm »
i just download sfml and i ran the example but for some reason it created a next progam named makefile.exe and it gave me an error

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11035
    • View Profile
    • development blog
    • Email
Re: makefile error?
« Reply #1 on: April 19, 2021, 05:20:59 pm »
Looks like you're not linking SFML.
How does the complete line with LIBS = ... look like?
« Last Edit: April 21, 2021, 08:18:04 am by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

udaniel

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: makefile error?
« Reply #2 on: April 21, 2021, 07:20:37 am »
what do you mean

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11035
    • View Profile
    • development blog
    • Email
Re: makefile error?
« Reply #3 on: April 21, 2021, 08:18:36 am »
On the make file line with LIBS= you need to list the SFML libraries to be linked
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

udaniel

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: makefile error?
« Reply #4 on: April 21, 2021, 05:42:47 pm »
this is what i see

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11035
    • View Profile
    • development blog
    • Email
Re: makefile error?
« Reply #5 on: April 21, 2021, 06:49:11 pm »
You use -I instead of -l (lower-case L)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything