Can't compile RSA / IDEA under Windows

Michel Bouissou michel@bouissou.net
Tue, 5 Sep 2000 10:25:32 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello list!

I've tried to compile the RSA and IDEA GnuPG modules by myself under
Windows. Unfortunately, I didn't succeed.

However, the same modules compile allright under Linux with GCC. I
may be missing something, but I can't figure out what...

I installed under Windows the MingW32 package including the GCC
compiler, but, when trying to compile, I get error messages like:

<<<<<
C:\GCC-2.95.2>gcc -Wall -o2 -o idea idea.c
C:\TEMP\cc9qpcgb.o(.text+0x102b):idea.c: undefined reference to
`g10_log_fatal'
C:\TEMP\cc9qpcgb.o(.text+0x109f):idea.c: undefined reference to
`g10_log_fatal'
C:\GCC-29~1.2\BIN\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\..\i
386-mingw3
2msvc\lib\libmingw32.a(main.o)(.text+0x8e): undefined reference to
`WinMain@16'

>>>>>
...for the IDEA module, and many more of the same kind for the RSA module. Here's the end of the list of messages I get when trying to compile RSA: <<<<< [...] C:\TEMP\ccZr4cgb.o(.text+0x6ce):rsa.c: undefined reference to `g10m_powm' C:\TEMP\ccZr4cgb.o(.text+0x6f4):rsa.c: undefined reference to `g10m_powm' C:\TEMP\ccZr4cgb.o(.text+0x778):rsa.c: undefined reference to `g10_calloc' C:\TEMP\ccZr4cgb.o(.text+0x84f):rsa.c: undefined reference to `g10m_get_size' C:\TEMP\ccZr4cgb.o(.text+0x85a):rsa.c: undefined reference to `g10m_new' C:\TEMP\ccZr4cgb.o(.text+0x8ee):rsa.c: undefined reference to `g10m_get_size' C:\TEMP\ccZr4cgb.o(.text+0x8f9):rsa.c: undefined reference to `g10m_new_secure' C:\TEMP\ccZr4cgb.o(.text+0x98e):rsa.c: undefined reference to `g10m_get_size' C:\TEMP\ccZr4cgb.o(.text+0x999):rsa.c: undefined reference to `g10m_new' C:\TEMP\ccZr4cgb.o(.text+0xa00):rsa.c: undefined reference to `g10m_new' C:\TEMP\ccZr4cgb.o(.text+0xa31):rsa.c: undefined reference to `g10m_cmp' C:\TEMP\ccZr4cgb.o(.text+0xa52):rsa.c: undefined reference to `g10m_release' C:\TEMP\ccZr4cgb.o(.text+0xa8a):rsa.c: undefined reference to `g10m_get_nbits' C:\GCC-29~1.2\BIN\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\..\i 386-mingw3 2msvc\lib\libmingw32.a(main.o)(.text+0x8e): undefined reference to `WinMain@16'
>>>>>
All the "undefined..." I get always seem to concern "g10....something" Any help or advice would be much appreciated ;-) Best regards. Michel Bouissou <michel@bouissou.net> PGP DH/DSS ID 0x5C2BEE8F -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com> Comment: Corrigez le bug PGP ADK. Installez PGP 6.5.8 ou superieur. iQA/AwUBObSf6Y7YarFcK+6PEQKDQgCfS1jJwt/UJWyjzK5UCsT2nhyKc+IAoJuC X6zYeqM3ymAv6OxM4OjVVIrK =aqAx -----END PGP SIGNATURE----- -- Archive is at http://lists.gnupg.org - Unsubscribe by sending mail with a subject of "unsubscribe" to gnupg-users-request@gnupg.org