bug-gnustep
[Top][All Lists]
Advanced

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

Re: APPKIT_EXPORT for NSRunAlertPanel etc?


From: Nicola Pero
Subject: Re: APPKIT_EXPORT for NSRunAlertPanel etc?
Date: Tue, 23 Oct 2001 15:22:29 +0100 (BST)

> Hi,
> 
> I'm compiling on Win32/Cygwin/Mingw32, and running into
> problems linking to NSRunAlertPanel. Looking at
> gui/Headers/NSPanel.h, these are not defined as
> APPKIT_EXPORT - in fact none of the functions in there are.
> 
> Should these be defined as APPKIT_EXPORT? I'm pretty sure
> that doing so will fix my linking problem.

Yes - just a minor comment - perhaps we should use APPKIT_DECLARE for
functions ... not APPKIT_EXPORT ?

as far as I can see, the difference is that APPKIT_EXPORT adds an `extern'
while APPKIT_DECLARE does not ... I suppose for declaration of functions
you would use APPKIT_DECLARE, while for global variables you would use
APPKIT_EXPORT.

So - yes - with this little modification - I think adding these it's ok.

We should probably go through all gui functions, and add APPKIT_DECLARE in
front of all of them, and all gui global vars, and add APPKIT_EXPORT in
front of all of them.




reply via email to

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