harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib][awt][macosx] Compiling lcmms component fails with duplicate symbol
Date Wed, 13 May 2009 10:50:54 GMT
Alexey Petrenko wrote:
> Does not standard way with if/define work here?

Should do, both files have the equivalent of

#ifndef _Included_NativeImageFormat
#define _Included_NativeImageFormat

at the start.

Nathan, can you post the actual compiler output?

Regards,
Tim


> 13.05.2009, в 6:21, Nathan Beyer <ndbeyer@apache.org> написал(а):
> 
>> While trying to compile the lcmms bit [1] of the awt module I'm
>> getting several "ld: dupblicate symbol" errors from NativeCMM.o and
>> NativeImageFormat.o on the 'jfield' variables defined in
>> NativeImageFormat.h [2]. While looking at the header files, I noticed
>> a circular include - NativeCMM.h includes NativeImageFormat.h and
>> NativeImageFormat.h includes NativeCMM.h.
>>
>> Any thoughts on how to unwind this?
>>
>> -Nathan
>>
>> [1]
>> http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/lcmm/shared/
>>
>> [2]
>> http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/lcmm/shared/NativeImageFormat.h?annotate=476395
>>
>> line 22-34
> 

Mime
View raw message