Can't build on Win32
Eddie Roosenmaallen
eroosenmaallen at cogeco.ca
Thu May 29 03:56:01 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
gpgkeys_hkp.c: In function `main':
gpgkeys_hkp.c:752: warning: implicit declaration of function `getopt'
gpgkeys_hkp.c:767: `optarg' undeclared (first use in this function)
gpgkeys_hkp.c:767: (Each undeclared identifier is reported only once
gpgkeys_hkp.c:767: for each function it appears in.)
gpgkeys_hkp.c:778: `optind' undeclared (first use in this function)
make: *** [gpgkeys_hkp.o] Error 1
> You'll need to manually link with:
>
> gcc -o gpgkeys_hkp.exe gpgkeys_hkp.o ../util/libutil.a -liberty -lwsock32
I don't have an object file yet, so that doesn't work. If I try to compile &
assemble manually, I get a pile of "not defined" errors and warnings, and it
bails on me.
I'm half thinking its time to stop associating with anyone who requires me
to run Microsoft products on my home computer to interact with them.
Thanks,
Eddie
- --
OpenPGP KeyID: 0xCC1aCD05
Get my key from keyserver.kjsl.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+1VnwtGGqbMwazQURAqCQAKCV233CVeS6fyamGY2E8gfG3bNk4ACaAm8Q
hT3nAjINR5hqeqacGUKdUDU=
=LQV4
-----END PGP SIGNATURE-----
More information about the Gnupg-devel
mailing list