[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Anyone?

From: Richard Frith-Macdonald
Subject: Re: Emacs Anyone?
Date: Fri, 3 Mar 2017 09:38:21 +0000

> On 3 Mar 2017, at 09:02, Riccardo Mottola <riccardo.mottola@libero.it> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]