Re: Re: doxygen

Stefan Seefeld <[email protected]>
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
Eric Niebler wrote:

> But I get this error:
>    machine/ieeefp.h: line 266: #error Endianess not declared!!
> 
> Looks like synopsis isn't detecting my platform.  So I pass -D __i386__ 
> as a parameter, and I get this:
>    /usr/include/sys/unistd.h:17: parse error before `( int'
> 
> This was the point at which I gave up. I don't have to hold gcc's hand 
> like this; it just works. Have I missed a configuration step?

Hmm, let's see. These are headers installed with (and for) the
gcc compiler, right ? Each compiler has its own predefined macros,
include paths, etc., so you may need to tell synopsis.
The way to do this is by giving synopsis the name of the compiler
to emulate. Synopsis will then invoke that compiler to try to find
out these values, so it can use them when it invokes its built-in
preprocessor.[*]

synopsis -h -p Cxx will tell you all the options you can use with the Cxx
parser. There's notably the 'emulate_compiler' option, which defaults to
'c++'. Can you try 'g++' to see whether that works better ? 'c++' should
be just an alias to 'g++', but...

synopsis -p Cxx -Wp,--emulate_compiler='g++' ...

>> The 'HTML' formatter generates class diagrams by default.
>> May be you could send me the command you used to generate the
>> document and a code snipped so we could compare what it should
>> generate and what it really does.
>>
> As you can tell, I never made it that far. I based my judgement on a 
> cursory glance at the documentation.

Hmm, I have to work on the documentation then...

Regards,
		Stefan

[*] synopsis will generate a file $(HOME)/.synopsis/cpp_emulations
     including settings for a set of compilers it has found on your
     system, so it doesn't need to run them all the time...
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.