![]() |
error with gmp-ecm library
A peaceful and pleasant day for you,
i have installed gmp-6.2.0 and ecm-7.0.4 and i want to use the ecm-library for an own program with : g++ -O3 -std=c++0x -pthread -lecm -mcmodel=medium -pedantic ./2x^2-1_220.cpp /usr/local/lib/libgmp.a /usr/local/lib/libecm.a I get the error: /usr/local/lib/libecm.a(libecm_la-spv.o): In Funktion `spv_random': /home/Bernhard/ecm-7.0.4/spv.c:446: Nicht definierter Verweis auf `__gmpn_random I think it is a linker problem from g++. Any ideas how to fix it ? Greetings from Germany Bernhard |
[QUOTE=bhelmes;544292]Any ideas how to fix it ?[/QUOTE]How about subscribing to, and then asking on, the ECM-GMP developers list (ecm-discuss@lists.gforge.inria.fr)?
Works for me but YMMV. |
g++ -O3 -std=c++0x -pthread -mcmodel=medium -pedantic ./2x^2-1_220.cpp -l gmp /usr/local/lib/libgmp.a -lecm /usr/local/lib/libecm.a
will do it. |
All times are UTC. The time now is 01:13. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.