[CLN-list] CLN compile errors on GCC4.2
Vipin Varma
varma at th.physik.uni-bonn.de
Wed May 26 12:21:39 CEST 2010
Hi
Thanks for the replies.
@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)
>>>>>>>>>>>>>>>>>>>>>>>>>>
And the include portion of the graph.cpp:
<SNIP>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <map>
<SNIP>
@Bruno:
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
ES_lattice_temp.cpp:156: error: integer constant is too large for âlongâ
type
ES_lattice_temp.cpp:156: error: integer constant is too large for âlongâ
type
ES_lattice_temp.cpp:28: error: cln is not a namespace-name
ES_lattice_temp.cpp:28: error: expected namespace-name before ; token
In file included from BHH_Nsite_final.cpp:12,
from ES_lattice_temp.cpp:34:
CoulombEnergy.cpp:1: error: cl_RA was not declared in this scope
CoulombEnergy.cpp:1: error: template argument 1 is invalid
CoulombEnergy.cpp:1: error: template argument 2 is invalid
......and more errors ......
I am wondering how to make the compiler just pick up the relevant header
files from include/cln ...
Regards,
Vipin
On Tue, 25 May 2010, Alexei Sheplyakov wrote:
> Hello,
>
> On Fri, May 21, 2010 at 03:10:21PM +0200, Vipin Varma wrote:
>> I've been using CLN 1.3.1 successfully with the GCC4.3 compiler. Now
>> I am running my code using the GCC4.2 on another machine (in which I
>> dont have the option of updating to the newer GCC):
>>
>> <SNIP>
>> In file included from /users/varma/cln-1.3.1/include/cln/string.h:7,
>> from /usr/include/c++/4.2/cstring:52,
>
> Oops... For some reason GCC decided to include cln/string.h instead of
> /usr/include/string.h
>
> That's a bit strage (I've been using GCC 4.2.{1,2,4} to compile CLN and
> GiNaC, and didn't hit any similar errors). Could you please post
> a) the OS you use and its version
> b) the exact version of GCC you use (the output of gcc -v)
> c) the graph.cpp file (or at least #include part)
>
> Best regards,
> Alexei
>
>
> _______________________________________________
> CLN-list mailing list
> CLN-list at ginac.de
> https://www.cebix.net/mailman/listinfo/cln-list
>
More information about the CLN-list
mailing list