hello
today i have read the book Cryptography in C and C++ (Michael Welschenbach)
i tried to use a function from the lib given by Authors , to generate prime number
the code is:
Code:#include <cstdlib> #include <iostream> #include "_assert.h" #include "flint.h" #include "flintpp.h" #include "kmul.h" #include "ripemd.h" using namespace std; int main(int argc, char *argv[]) { LINT po; po=findprime(20,37); cerr << "a = " << po << endl; system("PAUSE"); return EXIT_SUCCESS; }
i use the compiler Dev c++ 4.9.9.2 , but i get that error
[Linker error] undefined reference to `LINT::LINT()'
[Linker error] undefined reference to `LINT::LINT(int)'
[Linker error] undefined reference to `findprime(unsigned short, LINT const&)'
[Linker error] undefined reference to `LINT:perator=(LINT const&)'
[Linker error] undefined reference to `operator<<(std:stream&, LINT const&)'
[Linker error] undefined reference to `purge_l'
the lib can be downloaded from Extra Materials - ISBN 978-1-893115-95-8
help me please
thank you