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

Author Topic: Can't sfml-main be merged into sfml-system ?  (Read 2205 times)

0 Members and 1 Guest are viewing this topic.

Sonkun

  • Full Member
  • ***
  • Posts: 241
    • View Profile
Can't sfml-main be merged into sfml-system ?
« on: March 18, 2013, 04:06:53 pm »
Hello,

I was wondering if it wouldn't be better to merge sfml-main into sfml-system since it's a system specific stuff and sfml-system is mandatory. Has anyone ever thought about that ? What was his conclusion ?
Interested in using SFML with Python ? Try out its Python binding!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Can't sfml-main be merged into sfml-system ?
« Reply #1 on: March 18, 2013, 04:18:29 pm »
sfml-main is optional, it doesn't have to be always linked.
Laurent Gomila - SFML developer

Sonkun

  • Full Member
  • ***
  • Posts: 241
    • View Profile
Re: Can't sfml-main be merged into sfml-system ?
« Reply #2 on: March 18, 2013, 04:44:28 pm »
And would it change/affect something if we merge it into sfml-system ? If the SFML user declares his own WinMain function, would it override the one contained in sfml-main ?
Interested in using SFML with Python ? Try out its Python binding!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Can't sfml-main be merged into sfml-system ?
« Reply #3 on: March 18, 2013, 04:50:48 pm »
No, it would conflict and produce a linker error.
Laurent Gomila - SFML developer

Sonkun

  • Full Member
  • ***
  • Posts: 241
    • View Profile
Re: Can't sfml-main be merged into sfml-system ?
« Reply #4 on: March 18, 2013, 05:03:16 pm »
Hmmm, fair enough ;p

Thanks!
Interested in using SFML with Python ? Try out its Python binding!