On 24 May 2011 20:37, Lex Trotman wrote:
On 25 May 2011 04:38, Chris Sutcliffe wrote:
Turns out I'm able to generate the tags file with:
geany -g -P mingw.c.tags c:\mingw\include*
Without the '-P' I get nothing. Looking at the documentation:
"-P or --no-preprocessing disables using the C pre-processor to process #include directives for C/C++ source files. Use this option if you want to specify each source file on the command-line instead of using a 'master' header file. Also can be useful if you don't want to specify the CFLAGS environment variable."
I have mingw's gcc in my path though. What does geany call as the C pre-processor?
It runs
gcc -E -dD -p -undef
Interesting, running that from command line like so:
gcc -E -dD -p -undef c:\mingw\include*
works fine. Running the geany command from within MSYS I get:
$ geany.exe -g test.c.tags /mingw/include/* 'G_END_DECLS)\s*$'' is not recognized as an internal or external command, operable program or batch file. Failed to create tags file, perhaps because no tags were found.
What tools are used to parse the pre-processor output?
Cheers,
Chris