gnustep-dev
[Top][All Lists]
Advanced

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

Re: GNUSTEP_WITH_DLL and GSObjCRuntime.h


From: Nicola Pero
Subject: Re: GNUSTEP_WITH_DLL and GSObjCRuntime.h
Date: Tue, 31 May 2005 14:48:19 +0100 (BST)

If it doesn't build for you, what error are you getting ?

It certainly worked for me ... and at a quick glance the preprocessor code
seems fine.  It's probably easier for us to understand what is happening
if you tell us the error that you are getting. ;-)

Thanks :-)


> Using the CVS head, in core/base/Headers/Additions/GNUstepBase/ 
> GSObjCRuntime.h the constant GNUSTEP_WITH_DLL is checked and only if  
> BUILD_libgnustep_base_DLL is defined is __MINGW32__ checked as to  
> whether GS_EXPORT and GS_DECLARE are defined as __declspec(dllexport).
> 
> This seems to cause problems building core/base/Tools/autogsdoc on  
> MinGW 3.2.0 since GNUSTEP_WITH_DLL is defined in its build process  
> but presumably BUILD_libgnustep_base_DLL is not?
> 
> Surely the lines
> 
> #if defined(__MINGW32__)
> #define GS_EXPORT extern
> #define GS_DECLARE
> #endif
> 
> need to be moved outside the check for BUILD_libgnustep_base_DLL?  
> Otherwise, how does the autogsdoc code build for other MinGW  
> developers and particularly the developer who added the comment below?
> 
> /* On Mingw, the compiler will export all symbols automatically, so
>   * __declspec(dllexport) is not needed
>   */





reply via email to

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