Re: Problem compiling Doxygen on Linux

Dimitri Van Heesch <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <[email protected]>
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
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.