discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Precompiled headers don't seem to work with GNU ObjC (was New


From: Andrew Pinski
Subject: Re: Precompiled headers don't seem to work with GNU ObjC (was New
Date: Mon, 15 Jan 2007 23:32:34 -0500 (EST)

> 
> 
> > I implemented (experimental) precompiled headers support in gnustep-mak=
> e.
> 
> Unfortunately, with my compiler (4.1.1 20070105 (Red Hat 4.1.1-51)) I can=
> 't get
> precompiled ObjC headers to work. :-(
> 
> It works fine for C headers, but it doesn't seem to work for ObjC headers=
> .
> 
> In attach a couple of files, test.h and test.m.
> 
> If I compile them the standard way --
> 
>  gcc test.m -lobjc
> 
> it all works.
> 
> If I first precompile test.h
> 
>  gcc -x objective-x-header test.h
> 
> I get the test.h.gch file, which looks ok, but then compiling fails --
> 
>  gcc test.m -lobjc
> 
> test.m:4: warning: cannot find interface declaration for =EF=BF=BDTestCla=
> ss=EF=BF=BD
> test.m:4: error: redefinition of =EF=BF=BDstruct TestClass=EF=BF=BD
> (compilation aborts)

Can you file a bug at http://gcc.gnu.org/bugzilla/ and I will look at it right
away, it is most likely something is just change to break objc-act.c.

Thanks,
Andrew Pinski




reply via email to

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