Vitaly, Alberto,

Thanks for pointing me in the right direction.  I am using the Eclipse CDT
3.5 IDE and it seems as though it is trying to compile all *.c files.  I was
able to declare *.c files as "C Header files" in the project settings, but
this didn't seem to keep it from trying to compile them.  I'll continue to
look into how to exclude *.c files from being compiled in Eclipse.

Cheers,

Jon Antoine
Senior Consultant
Antoine Solutions
Web Design and Development
www.antoinesolutions.com
971-235-1903


On Sun, Nov 8, 2009 at 11:34 PM, Alberto Massari <[email protected]>wrote:

> Hi Jon,
> BaseRefVectorOf.c (and the other *.c files) shouldn't be compiled directly
> by the compiler; it is #included by BaseRefVectorOf.hpp. Did you create your
> own make file? If this is the case, pay attention to which file are included
> in the makefile that ships with Xerces.
>
> Alberto
>
>
> Jon Antoine wrote:
>
>> Hi,
>>
>> *I am trying to use Xerces and am running into the following errors during
>> compilation:*
>>
>> **** Build of configuration Debug for project event_photo_workflow ****
>>
>> make all
>> Building file: ../xercesc/util/BaseRefVectorOf.c
>> Invoking: GCC C Compiler
>> gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP
>> -MF"xercesc/util/BaseRefVectorOf.d" -MT"xercesc/util/BaseRefVectorOf.d"
>> -o"xercesc/util/BaseRefVectorOf.o" "../xercesc/util/BaseRefVectorOf.c"
>> ../xercesc/util/BaseRefVectorOf.c:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
>> or ‘__attribute__’ before ‘template’
>> ../xercesc/util/BaseRefVectorOf.c:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:128: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:141: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:169: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:179: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:196: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:211: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:223: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:233: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:238: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:246: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:254: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:263: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:300: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:309: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:315: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:327: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:334: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:339: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ before ‘<’ token
>> ../xercesc/util/BaseRefVectorOf.c:344: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’
>> or ‘__attribute__’ at end of input
>> make: *** [xercesc/util/BaseRefVectorOf.o] Error 1
>>
>> *I am using the following components:
>> *
>> xerces-c-3.0.1-x86-linux-gcc-3.4 binary
>> Fedora 11
>> Eclipse CDT 3.5
>> gcc-4.3.2-7
>> cmake-2.6.4-2
>> make-1:3.81-14
>>
>> I have one source file in the project, main.cpp using the code found at
>> http://xerces.apache.org/xerces-c/program-3.html.  Any help is greatly
>> appreciated.
>>
>> Cheers,
>>
>> Jon Antoine
>>
>>
>>
>
>

Reply via email to