[CLN-list] CLN compile errors on GCC4.2
Alexei Sheplyakov
alexei.sheplyakov at gmail.com
Wed May 26 22:15:05 CEST 2010
Hello,
On Wed, May 26, 2010 at 12:21:39PM +0200, Vipin Varma wrote:
> @Alexei:
> This is the OS and gcc that I use:
>
> >>>>>>>>>>>>>>>>>>>>>>>>>
>
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v
> --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
> --enable-shared --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix --enable-nls
> --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
> --enable-mpfr --enable-targets=all
> --enable-checking=release--build=i486-linux-gnu
> --host=i486-linux-gnu --target=i486-linux-gnu
> Thread model: posix
> gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
That's almost the same as I use (modulo 64bit vs 32bit and Debian vs Ubuntu).
> >>>>>>>>>>>>>>>>>>>>>>>>>>
>
> And the include portion of the graph.cpp:
>
> <SNIP>
> #include <cmath>
> #include <iostream>
> #include <iomanip>
> #include <sstream>
> #include <map>
> <SNIP>
What about CLN headers?
> When I give the compiler-option of just
> -I/users/varma/cln-1.3.1/include and not
> -I/users/varma/cln-1.3.1/include/cln, the compiler is unable to find
> the header files which are in include/cln:
>
> rational.h: No such file or directory
> ES_lattice_temp.cpp:13:25: error: rational_io.h: No such file or directory
I guess you
#include "rational_io.h" // INCORRECT
instead of
#include "cln/rational_io.h" // CORRECT
> I am wondering how to make the compiler just pick up the relevant
> header files from include/cln ...
#include "cln/integer.h"
#include "cln/rational.h"
Best regards,
Alexei
More information about the CLN-list
mailing list