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

Author Topic: Codeblocks setting up  (Read 2618 times)

0 Members and 1 Guest are viewing this topic.

revix2k9

  • Newbie
  • *
  • Posts: 6
    • View Profile
Codeblocks setting up
« on: September 14, 2012, 10:49:27 pm »
I followed the tutorial tried linking the dlls static i get this error.

cannot find -lsdlmain

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Codeblocks setting up
« Reply #1 on: September 14, 2012, 11:02:37 pm »
Seriously? >:(

This library is SFML, not SDL.
Laurent Gomila - SFML developer

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Codeblocks setting up
« Reply #2 on: September 14, 2012, 11:17:07 pm »
Quote
Seriously?  >:(
I thought the first post was funny but then I saw that.
Back to C++ gamedev with SFML in May 2023

revix2k9

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Codeblocks setting up
« Reply #3 on: September 14, 2012, 11:24:35 pm »
Seriously? >:(

This library is SFML, not SDL.
lol i get it now T_T codeblocks has SDL with sfml T_T i removed the sdl include / lib from codeblocks but its still saying it T_T
« Last Edit: September 14, 2012, 11:29:53 pm by revix2k9 »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Codeblocks setting up
« Reply #4 on: September 14, 2012, 11:54:40 pm »
This error means that you have added "-lsdlmain" to your linker settings (in "additional libraries", or something similar).
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Codeblocks setting up
« Reply #5 on: September 15, 2012, 12:46:14 am »
lol i get it now T_T codeblocks has SDL with sfml T_T i removed the sdl include / lib from codeblocks but its still saying it T_T
Does that mean, that you're using some Code::Blocks template?
Don't do that, but use an empty project and set all the settings correctly on your own, with the help of the tutorial.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything