Can't build on Win32
Colin Brown
colstar at iprimus.com.au
Thu May 29 13:35:02 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It works! :)
Thanks
- -----Original Message-----
From: gnupg-devel-admin at gnupg.org [mailto:gnupg-devel-admin at gnupg.org] On Behalf Of David Shaw
Sent: Thursday, 29 May 2003 10:04 AM
To: gnupg-devel at gnupg.org
Subject: Re: Can't build on Win32
- -----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-----
_______________________________________________
Gnupg-devel mailing list
Gnupg-devel at gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-devel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
iD8DBQE+1eKVa7XhVS1wirkRAqvRAKDhIVYPSJonCK4PHL96GCl753copACfYpHB
c+X/BdwSDI65Hox+hfYCp/E=
=B9wZ
-----END PGP SIGNATURE-----
More information about the Gnupg-devel
mailing list