help-gengetopt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-gengetopt] Usage of gengetopt


From: Hans Lodder
Subject: [help-gengetopt] Usage of gengetopt
Date: Mon, 06 Sep 2010 08:19:23 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

Hi!

I am currently working on a free software application (xref). 1 of the GNU requirements is to implement long options. At least "--help" and "--version" are required.

After some searching I ran into GenGetOpt as a possibility to generate these command line options, long as well as short. So I downloaded gengetopt.2.22.4 and Cygwin 1.7.7.

Unfortunately, ./configure crashes. It cannot find /mingw/lib/crt2.o in the mentioned directory, because it resides somewhere else.

See the end of my mail.

I am on Win XP Home SP3, and run in Least User Access (LUA) mode.

My questions:

1. Does there exist an already compiled version, so I can download the executables, and just run it? I need gengetopt only this time. 2. Do you have a simple compile instruction, so I can compile it with MingW (http://www.mingw.org/). I do not intend to work on gengetopt myself, I only want to use it, and benefit from its existence. I mean something like "gcc gengetopt.c".

If there is anything I can do for you, please let me know.

Kind regards, and thanks in advance,

Hans Lodder

PS: The last few lines of result of the Cygwin ./configure run:

/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o gengetopt.exe parser .o scanner.o argsdef.o cmdline.o gengetopt.o gm.o yyerror.o gm_utils.o fileutils
.o acceptedvalues.o ggos.o ../gl/libgnu.la  skels/libgen.la
libtool: link: g++ -g -O2 -o .libs/gengetopt.exe parser.o scanner.o argsdef.o cm dline.o gengetopt.o gm.o yyerror.o gm_utils.o fileutils.o acceptedvalues.o ggos.
o  ../gl/.libs/libgnu.a skels/.libs/libgen.a
/usr/bin/ld: cannot find /mingw/lib/crt2.o: No such file or directory
collect2: ld returned 1 exit status
make[4]: *** [gengetopt.exe] Error 1
make[4]: Leaving directory `/cygdrive/d/Dev/genGetOpt/gengetopt-2.22.4/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/d/Dev/genGetOpt/gengetopt-2.22.4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/d/Dev/genGetOpt/gengetopt-2.22.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/d/Dev/genGetOpt/gengetopt-2.22.4'
make: *** [all] Error 2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]