Re: [Doxygen-develop] Problem compiling Doxygen on Linux
Brought to you by:
dimitri
From: Dimitri V. H. <do...@gm...> - 2011-08-30 18:52:59
|
Hi Albert, On Aug 29, 2011, at 12:15 , Albert wrote: > Dear all, > > I have some problems compiling the newest doxygen code (version 775 from svn) > on a redhat 5 system. > > I get the following error message: > g++ -c -pipe -fno-exceptions -fno-rtti -DYY_TYPEDEF_YY_SIZE_T > -Dyy_size_t=int -D_LARGEFILE_SOURCE -Wall -W -fno-exceptions -O2 > -I../qtools -I../libmd5 -o ../objects/ce_lex.o ce_lex.cpp > ce_lex.cpp:168: error: multiple types in one declaration > ce_lex.cpp:168: error: declaration does not declare anything > > When I look in the the ce_lex.cpp file I see: > typedef unsigned int yy_size_t; > > I think thgere is a problem with the -D flag as set in the compile line. > The compiule line is generated from: > ./src/libdoxygen.pro.in:TMAKE_CXXFLAGS += -DYY_TYPEDEF_YY_SIZE_T -Dyy_size_t=int > > I have removed in my version the -Dyy_size_t=int and than everything compiles. I specifically added the -D stuff to work around a series of nasty warnings that appeared in the generated code, because yy_size_t was typedef'ed as a size_t and then compared against an int. Apparently the flex version of RedHat 5 produces different output. Can you tell me which version they ship? I'm using 2.5.35. Regards, Dimitri |