View Single Post
Old 2020-04-30, 16:29   #1
bhelmes
 
bhelmes's Avatar
 
Mar 2016

37610 Posts
Default 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
bhelmes is offline   Reply With Quote