Re: [Evolution-hackers] How do I use CFLAGS
- From: Not Zed <notzed ximian com>
- To: "A. Gunes Koru" <gkoru engr smu edu>
- Cc: Jeffrey Stedfast <fejj ximian com>, Evolution Hackers <evolution-hackers ximian com>
- Subject: Re: [Evolution-hackers] How do I use CFLAGS
- Date: 03 Jul 2003 23:58:01 +0930
On Thu, 2003-07-03 at 02:13, A. Gunes Koru wrote:
> Actually I wanted to measure the complexity of the C source files in
> Evolution. I found a free tool called Metre (version 2.3, Just make a web
> search if you are curious).. The tool said it required preprocessed files.
> That's why i asked your help..
Ahh cool. Just curious. Get a bit suspicious when people are cagey
> Finally, I managed to produce the pre-processed files. But this time the tool
> gave me some syntax errors. I guess the reason was that it was written
> considering ANSII C. The last version is 1995. However gcc is different.
Well we should only be using C89, which is ansi c. However glib (and
indeed the c library) use some gcc extensions when they're available
which might be getting into the preprocessed source You might have to
convince glib or the evo build that it isn't running on gcc. Adding
"-ansi" to the CFLAGS might also make a difference - maybe.
It really depends on what the syntax errors are, perhaps you could post
some here. If they are minor, there might be easy workarounds, e.g.
making slight modifications to the source, or even remove the offending
bits - it doesn't have to run afterall, only preprocess.
] [Thread Prev