mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Blogorrhea > EdH

Reply
 
Thread Tools
Old 2020-07-03, 19:26   #12
Mr. Odd
 
Mar 2010

658 Posts
Default

Nope, still bombs at #include <gmpxx.h> in aliqueit.cc.
Mr. Odd is offline   Reply With Quote
Old 2020-07-03, 22:00   #13
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

1100101110012 Posts
Default

Quote:
Originally Posted by Mr. Odd View Post
Nope, still bombs at #include <gmpxx.h> in aliqueit.cc.
Well, let's look at a system here that works with GMP-6.1.2. I have this structure:

<$HOME>/Math/gmp/ - - - this is the folder in which I compiled GMP
<$HOME/>Math/Aliqueit/src/aliqueit/ - - - this is created by unzipping in the Aliqueit folder (Note the A/a for folders.)

The $HOME/Math/Aliqueit/src/aliqueit/ folder has:
Code:
aliqueit.cc
aliqueit.h
aliqueit.rc
aliqueit.vcproj
cfg.cc
cfg.h
Makefile
misc.cc
misc.h
resource.h
My Makefile consists of the following:
Code:
#
# aliqueit Makefile for linux
#

# you'll need to change this if your gmp headers aren't installed globally:
GMP_DIR = ../../../gmp

CC = g++
CFLAGS = -O3 -I$(GMP_DIR)

# you'll need to change this if your gmp headers aren't installed globally:
LIBS = -L../../../gmp -lgmp

OBJ = aliqueit.o cfg.o misc.o


aliqueit: $(OBJ)
    $(CC) $(CFLAGS) $(OBJ) $(LIBS) -o aliqueit

%.o: %.cc
    $(CC) $(CFLAGS) -c -o $@ $<
Aliqueit compiles fine with this Makefile. I can do just about anything, except remove the -lgmp (which is, of course, needed) in the "LIBS =" line.

However, ANY change to the "GMP_DIR =" line causes the following:
Code:
g++ -O3 -I../../gmp -c -o aliqueit.o aliqueit.cc
In file included from aliqueit.cc:21:0:
aliqueit.h:11:19: fatal error: gmpxx.h: No such file or directory
 #include <gmpxx.h>
                   ^
compilation terminated.
Makefile:21: recipe for target 'aliqueit.o' failed
make: *** [aliqueit.o] Error 1
What do you show if you issue the command:
Code:
locate gmpxx.h
I show:
Code:
. . .
<$HOME>/Math/gmp/gmpxx.h
Maybe you could take the folder portion of the response and plug it in as the "GMP_DIR =" value:
Code:
GMP_DIR = <$HOME>/Math/gmp
I tried that here and it compiled.
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How I Install CADO-NFS onto my Ubuntu Machines EdH EdH 3 2019-06-24 03:42
How I Install GMP-ECM onto my Ubuntu Machines EdH EdH 12 2019-04-16 09:28
How I Install and Run ecmpi Across Several Ubuntu Machines EdH EdH 0 2019-04-04 22:33
How I Install ggnfs onto my Ubuntu Machines EdH EdH 0 2018-02-22 03:31
How I Install GMP onto my Ubuntu Machines EdH EdH 0 2018-02-21 23:48

All times are UTC. The time now is 19:40.

Wed Aug 5 19:40:45 UTC 2020 up 19 days, 15:27, 2 users, load averages: 1.70, 1.77, 1.73

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.