gnustep-dev
[Top][All Lists]
Advanced

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

Re: Building tool with corebase


From: David Chisnall
Subject: Re: Building tool with corebase
Date: Wed, 20 Jan 2010 11:20:54 +0000

On 20 Jan 2010, at 00:34, Stef Bidi wrote:

/usr/GNUstep/System/Library/Libraries/libgnustep-base.so: undefined reference to `gnustep_base_user_main'

To add to what Richard has said, this is usually caused by GNUstep Make being configured without fake main support and GNUstep Base being configured with. When you do this, your make will be renamed gnustep_base_user_main() and the real main() will be in -base. This will do initialization stuff and then call your main().

We should probably replace that with an __attribute__((constructor)) function for platforms that need GNUstep to run some stuff before main () starts, since that's a much less fragile solution (and works, for example, when you use GNUstep code from a shared library that is linked to by a pure C application).

David

--
This email complies with ISO 3103





reply via email to

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