[Geany] Generating custom tags file in Windows
Lex Trotman
elextr at xxxxx
Wed May 25 00:37:56 UTC 2011
On 25 May 2011 04:38, Chris Sutcliffe <ir0nh34d at gmail.com> wrote:
> On 24 May 2011 13:17, Matthew Brush wrote:
>> On 05/24/11 09:15, Chris Sutcliffe wrote:
>>>
>>> Looking at the geany documentation, as I understand it, I should be
>>> able to generate a custom tags file with:
>>>
>>> geany -g mingw.c.tags c:\mingw\include
>>>
>>> As long as MinGW gcc is in my path (which it is) and grep is available
>>> (which it is). Yet when I run this command, I have a command box
>>> briefly pop-up and no tags file is generated. Am I missing something?
>>
>> I've never tried on Windows, but I've used many times on Linux and always
>> specified a files list (or glob actually). From the manual:
>>
>> geany -g [-P] <Tag File> <File list>
>>
>> "File list is a list of filenames, each with a full path (unless you are
>> generating C/C++ tags and have set the CFLAGS environment variable
>> appropriately)."
>>
>> Probably try this:
>>
>> geany -g mingw.c.tags c:\mingw\include\*.h
>
> 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?
>
> Thank you,
>
Hi Chris,
It runs
gcc -E -dD -p -undef
Cheers
Lex
> Chris
>
> --
> Chris Sutcliffe
> http://emergedesktop.org
> http://www.google.com/profiles/ir0nh34d
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
More information about the Users
mailing list