mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

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

25×32 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
Old 2020-04-30, 18:37   #2
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

37×281 Posts
Default

Quote:
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 (ecm-discuss@lists.gforge.inria.fr)?
Works for me but YMMV.
xilman is online now   Reply With Quote
Old 2020-04-30, 20:21   #3
bhelmes
 
bhelmes's Avatar
 
Mar 2016

25×32 Posts
Default

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
Reply

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 12:12.

Sat Dec 5 12:12:52 UTC 2020 up 2 days, 8:24, 0 users, load averages: 1.70, 1.79, 1.84

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.