Go Back > Great Internet Mersenne Prime Search > Software

Thread Tools
Old 2020-04-30, 16:29   #1
bhelmes's Avatar
Mar 2016

36910 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
bhelmes is offline   Reply With Quote
Old 2020-04-30, 18:37   #2
xilman's Avatar
May 2003
Down not across

24×13×53 Posts

Originally Posted by bhelmes View Post
Any ideas how to fix it ?
How about subscribing to, and then asking on, the ECM-GMP developers list (
Works for me but YMMV.
xilman is offline   Reply With Quote
Old 2020-04-30, 20:21   #3
bhelmes's Avatar
Mar 2016

32·41 Posts

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.
bhelmes is offline   Reply With Quote

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
CURL library error: Operation timed out... - caused by Ghostery Midnight markdjonson PrimeNet 2 2020-05-01 17:45
CURL library error: couldn't connect to host Matt Westwood Software 2 2010-02-22 21:57
CURL Library Error: could not connect to host Unregistered Information & Answers 3 2009-11-22 09:35
CURL library error Glenn Leider Software 12 2009-04-16 02:45
GWNUM library bearnol Software 6 2006-02-24 11:19

All times are UTC. The time now is 23:55.

Wed Dec 1 23:55:08 UTC 2021 up 131 days, 18:24, 1 user, load averages: 1.17, 1.14, 1.12

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.