Can't build on Win32
David Shaw
dshaw at jabberwocky.com
Thu May 29 05:03:02 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, May 28, 2003 at 08:53:05PM -0400, Eddie Roosenmaallen wrote:
> David Shaw wrote:
> > I think mingw32 doesn't have getopt without libiberty. Hmm. What
> > happens if you add "#include <getopt.h>" to gpgkeys_hkp.c ?
>
> eroosenmaallen at EDDIESLAPTOP /c/projects/gnupg-1.3.2/keyserver
> $ make
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl -g -O2 -Wall
> - -MT gpgkeys_hkp.o -MD -MP -MF ".deps/gpgkeys_hkp.Tpo" \
> -c -o gpgkeys_hkp.o `test -f 'gpgkeys_hkp.c' || echo './'`gpgkeys_hkp.c; \
> then mv -f ".deps/gpgkeys_hkp.Tpo" ".deps/gpgkeys_hkp.Po"; \
> else rm -f ".deps/gpgkeys_hkp.Tpo"; exit 1; \
> fi
> gpgkeys_hkp.c:32:20: getopt.h: No such file or directory
Sigh. Okay, rip out the "#include <getopt.h>" and stick in (after the
#includes):
extern char *optarg;
extern int optind;
You'll still need to manually link with:
gcc -o gpgkeys_hkp.exe gpgkeys_hkp.o ../util/libutil.a -liberty -lwsock32
David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-cvs (GNU/Linux)
Comment: http://www.jabberwocky.com/david/keys.asc
iD8DBQE+1WqS4mZch0nhy8kRAqrTAKDNz5MqIhzrx/gLRN7Wvh9H4AMRkQCgmCEl
lrb9k2V8u43aGY7OjV/BlOI=
=2rE9
-----END PGP SIGNATURE-----
More information about the Gnupg-devel
mailing list