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

Author Topic: SFML Static Linking 2017  (Read 4314 times)

0 Members and 1 Guest are viewing this topic.

kryton9

  • Newbie
  • *
  • Posts: 11
    • View Profile
SFML Static Linking 2017
« on: May 29, 2017, 06:46:30 am »
Update: fixed here

I tried to get SFML's test program to compile statically. I wanted to make a template using everything to see that I got everything in the right order. As you can see from the attached picture, I tried to put everything in the order listed in the help for https://www.sfml-dev.org/tutorials/2.4/start-cb.php

Thanks for any help.

« Last Edit: May 29, 2017, 07:00:15 pm by kryton9 »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML Static Linking 2017
« Reply #1 on: May 29, 2017, 07:44:31 am »
I think you forgot to describe your problem...
Laurent Gomila - SFML developer

kryton9

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: SFML Static Linking 2017
« Reply #2 on: May 29, 2017, 03:18:03 pm »
I can't get SFML to compile statically. It is giving me linking errors. From reading the forums for the type of errors I was getting, it was referred to as being an ordering issue of the libraries.

My screenshot is how I everything organized to do a test full static compile. I tried to match what was in the help for the recommended order.

If one of the developers could do a similar screenshot of their setup I could try to match that.
Thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML Static Linking 2017
« Reply #3 on: May 29, 2017, 03:22:53 pm »
Quote
It is giving me linking errors
Which ones? We can't solve them if we don't know what they are... ;)
Laurent Gomila - SFML developer

kryton9

  • Newbie
  • *
  • Posts: 11
    • View Profile
Working Static Linking Order
« Reply #4 on: May 29, 2017, 04:45:44 pm »
Here is a screenshot of the libs in the order they are needed to get the first tutorial working with static linking.

I started over and here are the libs in the linker settings in codeblocks. They are ordered correctly now to get a static link of the test project here:
https://www.sfml-dev.org/tutorials/2.4/start-cb.php



Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML Static Linking 2017
« Reply #5 on: May 29, 2017, 07:01:39 pm »
So it is working now?
Laurent Gomila - SFML developer

kryton9

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: SFML Static Linking 2017
« Reply #6 on: May 30, 2017, 08:23:38 am »
Yes, thanks.

 

anything