> On 3 Mar 2017, at 09:02, Riccardo Mottola <[email protected]> wrote: > > Hi Fred, > > Fred Kiefer wrote: >> The simplest way to work around this issue is to switch to fake main, which >> may be done via the configure switch --enable-fake-main for GNUstep base. >> >> But you should rather try to find out what is the issue here instead. > > fake main is automatically enabled in OpenBSD and all othe apps do work, so > for some reason it is ineffective. What could it be?
For fake main to work, you have to include a GNUstep header file (eg Foundation/NSObject.h) in the source file where main() is used. So typically that won't work if you are writring library code which is to be called from some application that's not GNUstep aware (ie where the source code you have never calls main()). In that situation you should be able to call GSInitializeProcess() to perform the setup before doing anything else. _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
