OK. I now installed GMP completely. But once I compile it, I get the following (linker-)errors:
main.o: In function `initializeGMP()':
main.cpp:(.text+0x3e): undefined reference to `__gmpz_init'
main.cpp:(.text+0x4a): undefined reference to `__gmpz_init'
main.cpp:(.text+0x56): undefined reference to `__gmpz_init'
main.cpp:(.text+0x62): undefined reference to `__gmpz_init'
main.cpp:(.text+0x6e): undefined reference to `__gmpz_init'
main.o: In function `RSA_checkKeys()':
main.cpp:(.text+0x21f): undefined reference to `__gmpz_set_str'
main.cpp:(.text+0x237): undefined reference to `__gmpz_set_str'
main.cpp:(.text+0x255): undefined reference to `__gmpz_set_str'
main.o: In function `clearGMP()':
main.cpp:(.text+0x28e): undefined reference to `__gmpz_clear'
main.cpp:(.text+0x29a): undefined reference to `__gmpz_clear'
main.cpp:(.text+0x2a6): undefined reference to `__gmpz_clear'
main.cpp:(.text+0x2b2): undefined reference to `__gmpz_clear'
main.cpp:(.text+0x2be): undefined reference to `__gmpz_clear'
main.o: In function `RSA_generateKeys()':
main.cpp:(.text+0x347): undefined reference to `__gmpz_init'
main.cpp:(.text+0x355): undefined reference to `__gmpz_init'
main.cpp:(.text+0x461): undefined reference to `__gmpz_set_str'
main.cpp:(.text+0x47b): undefined reference to `__gmpz_set_str'
main.cpp:(.text+0x48d): undefined reference to `__gmpz_nextprime'
...
main.o: In function `initializeGMP()':
main.cpp:(.text+0x3e): undefined reference to `__gmpz_init'
main.cpp:(.text+0x4a): undefined reference to `__gmpz_init'
main.cpp:(.text+0x56): undefined reference to `__gmpz_init'
main.cpp:(.text+0x62): undefined reference to `__gmpz_init'
main.cpp:(.text+0x6e): undefined reference to `__gmpz_init'
main.o: In function `RSA_checkKeys()':
main.cpp:(.text+0x21f): undefined reference to `__gmpz_set_str'
main.cpp:(.text+0x237): undefined reference to `__gmpz_set_str'
main.cpp:(.text+0x255): undefined reference to `__gmpz_set_str'
main.o: In function `clearGMP()':
main.cpp:(.text+0x28e): undefined reference to `__gmpz_clear'
main.cpp:(.text+0x29a): undefined reference to `__gmpz_clear'
main.cpp:(.text+0x2a6): undefined reference to `__gmpz_clear'
main.cpp:(.text+0x2b2): undefined reference to `__gmpz_clear'
main.cpp:(.text+0x2be): undefined reference to `__gmpz_clear'
main.o: In function `RSA_generateKeys()':
main.cpp:(.text+0x347): undefined reference to `__gmpz_init'
main.cpp:(.text+0x355): undefined reference to `__gmpz_init'
main.cpp:(.text+0x461): undefined reference to `__gmpz_set_str'
main.cpp:(.text+0x47b): undefined reference to `__gmpz_set_str'
main.cpp:(.text+0x48d): undefined reference to `__gmpz_nextprime'
...
To copy to clipboard, switch view to plain text mode
I am using the Qt Creator.
Please help...
Bookmarks