> >>  > gengetopt:10: syntax error `
> >>  > gengetopt:10: `-q' does not print name of clean files.'
> >>  > gengetopt:10: ^
> >>  >
> >>  > The commandline was 'gengetopt -f getoptions -acmdline_options
> -uTARGETS -CeN'
> >>
> >>  I tried your code and it works fine with me... could you please send me
> >>  the file that experiences this problem?

> I cannot seem to reproduce the problem (even with dos newlines), could 
> you please send me the file?

It may be nothing to do with gengetopt but the way I create the ggo file.

Actually the original .ggo file is rather a template which is filled in with 
cpp preprocessor (replace defines with real string values for option defaults 
and such): 

        $(CC) -I $(THISDIR) $(CFLAGS) $(defines) -E -x c $(THISDIR)/$< \
        | tee options.processed \
        | $(GENGETOPT) -f getoptions -acmdline_options -uTARGETS -CeN

the original lines above look like from options.processed:

option "quiet" q
"control message verbosity on stdout."
 `-q' does not print name of clean files.'
 `-qq' suppresses all messages but alerts, and'
 `-qqq' implies terse' as well.
It does not affect error reporting on stderr!""
        no multiple

Each unterminated quote (both single and double) is terminated automagically, 
that's why gengetopt fails.


_______________________________________________
Help-gengetopt mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gengetopt

Reply via email to