gnustep-dev
[Top][All Lists]
Advanced

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

Re: Use of libobjc from gcc 4.1 with MinGW


From: Xavier Glattard
Subject: Re: Use of libobjc from gcc 4.1 with MinGW
Date: Wed, 21 Mar 2007 15:40:34 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Andrew Pinski <pinskia <at> gmail.com> writes:

> 
> On 3/21/07, Xavier Glattard <xavier.glattard <at> online.fr> wrote:
> > Hi
> >
> > I found out how to compile gnustep-base with the gcc4.1 objc library (not 
> > the
> > gnustep one). I can now enable native exceptions 
> >
> > I had to change one line in objc-decls.h :
> >
> > - #if defined (_WIN32) || defined (__WIN32__) || defined (WIN32)
> > + #if !defined(__MINGW32__) && defined (_WIN32) || defined (__WIN32__) ||
> > defined (WIN32)
> 
> I think this change is wrong for libobjc in general.  The question
> comes down to why is mingw is special compared to cygwin, it is not.
> Now what is most likely happening is something is not being exported
> when it should be.
> 
> I have an idea of what but since I don't run windows with libobjc, I
> don't know for sure.
> 
> Thanks,
> Andrew Pinski
> 

Without the change i got :

Creating library file: ./obj/libgnustep-base.dll.a
obj/objc-load.o(.text+0x299): In function `GSPrivateLoadModule':
c:/Dev/gnustep/svn/libs/base/Source/objc-load.m:182: undefined reference to
`_imp___objc_load_callback'
obj/objc-load.o(.text+0x379):c:/Dev/gnustep/svn/libs/base/Source/objc-load.m:195:
undefined reference to `_imp___objc_load_callback'
obj/objc-load.o(.text+0x3ca):c:/Dev/gnustep/svn/libs/base/Source/objc-load.m:205:
undefined reference to `_imp___objc_load_callback'
obj/objc-load.o(.text+0x3e3):c:/Dev/gnustep/svn/libs/base/Source/objc-load.m:235:
undefined reference to `_imp___objc_load_callback'
obj/GSFFCallInvocation.o(.text+0xbe4): In function `c_GSFFCallInvocation__load':
c:/Dev/gnustep/svn/libs/base/Source/GSFFCallInvocation.m:451: undefined
reference to `_imp____objc_msg_forward'
collect2: ld returned 1 exit status
make[1]: *** [obj/libgnustep-base.dll.a] Error 1
make: *** [libgnustep-base.all.library.variables] Error 2

So these names are not exported properly.
I dont know why but mingw32 seems to be special... :-\

xavier







reply via email to

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