PCH / ObjC issue with gcc 4.0.2-pre

Andrew Pinski pinskia@physics.uc.edu
Fri Aug 26 16:27:00 GMT 2005


On Aug 26, 2005, at 10:16 AM, Helge Hess wrote:

> Hi,
>
> I'm experiencing some issue with using a precompiled header with an 
> Objective-C file. When including the header, I'll get duplicate 
> symbols, like this:
> ---snip---
> SaxAttributeList.m:188: error: redefinition of 'struct _objc_symtab'
> SaxAttributeList.m:188: error: redefinition of 'struct _objc_module'
> SaxAttributeList.m:188: error: redefinition of '__objc_gnu_init'
> common.h:26: error: previous definition of '__objc_gnu_init' was here
> {standard input}: Assembler messages:
> {standard input}:2136: Error: symbol `_OBJC_SYMBOLS' is already defined
> ---snap---

Can you report a bug? See http://gcc.gnu.org/bugs.html for directions.
I will look into it.  It is most likely an issue with the decl rewrite
but I don't know until I get a testcase.

-- Pinski



More information about the Gcc mailing list