- #1
Angelos K
- 48
- 0
Hi, all!
Unfortunately I'm not much of a computer guy, so I'm sorry if I leave out anything important.
I'm attempting to build Cuba-2.1. The distribution I'm using is:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS"
I go inside the directory containing all Cuba files and do:
./configure
whereupon everything looks fine.
Then I do
make all
whereupon a huge amount of output is produced, ending:
ranlib libcuba.a
gcc -O0 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -o demo-c ./demo/demo-c.c libcuba.a -lm
f77 -g -O2 -o demo-fortran ./demo/demo-fortran.F libcuba.a -lm
MAIN cubatest:
integrand:
<stdin>:119: error: conflicting types for ‘integrand_’
./demo/demo-fortran.F:34: note: previous declaration of ‘integrand_’ was here
/usr/bin/f77: aborting compilation
make: *** [demo-fortran] Error 1
The outputs I need - cuba.h and libcuba.a - are produced, buit of course I fear they are faulty. I am unsure whether the error concerns demo files or anything vital, but I need to do everything cleanly...
By the way: the output talks a lot about fortran. I won't use this in fortran, but only in pure C. In addition, I have tried the same procedure with the 3.0 beta release. The same (or very similar) things occured.
Thank you for your time and any help,
Angelos
Unfortunately I'm not much of a computer guy, so I'm sorry if I leave out anything important.
I'm attempting to build Cuba-2.1. The distribution I'm using is:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS"
I go inside the directory containing all Cuba files and do:
./configure
whereupon everything looks fine.
Then I do
make all
whereupon a huge amount of output is produced, ending:
ranlib libcuba.a
gcc -O0 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -o demo-c ./demo/demo-c.c libcuba.a -lm
f77 -g -O2 -o demo-fortran ./demo/demo-fortran.F libcuba.a -lm
MAIN cubatest:
integrand:
<stdin>:119: error: conflicting types for ‘integrand_’
./demo/demo-fortran.F:34: note: previous declaration of ‘integrand_’ was here
/usr/bin/f77: aborting compilation
make: *** [demo-fortran] Error 1
The outputs I need - cuba.h and libcuba.a - are produced, buit of course I fear they are faulty. I am unsure whether the error concerns demo files or anything vital, but I need to do everything cleanly...
By the way: the output talks a lot about fortran. I won't use this in fortran, but only in pure C. In addition, I have tried the same procedure with the 3.0 beta release. The same (or very similar) things occured.
Thank you for your time and any help,
Angelos