SFML community forums

Help => General => Topic started by: Sonkun on March 18, 2013, 04:06:53 pm

Title: Can't sfml-main be merged into sfml-system ?
Post by: Sonkun 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 ?
Title: Re: Can't sfml-main be merged into sfml-system ?
Post by: Laurent on March 18, 2013, 04:18:29 pm
sfml-main is optional, it doesn't have to be always linked.
Title: Re: Can't sfml-main be merged into sfml-system ?
Post by: Sonkun 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 ?
Title: Re: Can't sfml-main be merged into sfml-system ?
Post by: Laurent on March 18, 2013, 04:50:48 pm
No, it would conflict and produce a linker error.
Title: Re: Can't sfml-main be merged into sfml-system ?
Post by: Sonkun on March 18, 2013, 05:03:16 pm
Hmmm, fair enough ;p

Thanks!