Re: compiling taucs problem (Re: solving Ax=b with sparse A)
- From: Georg Baum <Georg.Baum@xxxxxx>
- Date: Thu, 09 Aug 2007 10:52:36 +0200
H.S. wrote:
And the following is the compiler output I get:
$> g++ -I$HOME/tmp/taucs/build/linux -I$HOME/tmp/taucs/src
-L$HOME/tmp/taucs/lib/linux -ltaucs -L$HOME/tmp/taucs/external/lib/linux
-latlas -lcblas -lf77blas -llapack -lmetis
$HOME/tmp/taucs/external/lib/linux/blas_aux.o spmat.cc -o spmat
In file included from /usr/include/c++/4.1.3/backward/complex.h:31,
from /home/hs/tmp/taucs/src/taucs.h:132,
from spmat.cc:1:
/usr/include/c++/4.1.3/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or <iostream> instead of
the deprecated header <iostream.h>. To disable this warning use
-Wno-deprecated.
/home/hs/tmp/taucs/src/taucs_private.h:45: error: previous declaration
of ‘taucs_ccs_matrix* taucs_ccs_create(int, int, int, int)’ with ‘C++’
linkage
spmat.cc:6: error: conflicts with new declaration with ‘C’ linkage
So, what am I doing wrong here?
The compiler tells it: The function declaration in line 6 of spmat.cc
conflicts with the declaration in taucs_private.h, line 45. It should work
if you remove your own declaration in spmat.cc.
In general it should not be needed to declare anything from a library, the
library author should have done that in the header files already. If this
is not the case then I'd question the quality of the library (the only
exception are fortran libraries that you call from C, then you usually need
to build your own declarations).
Georg
.
- Follow-Ups:
- References:
- solving Ax=b with sparse A
- From: H.S.
- Re: solving Ax=b with sparse A
- From: Evgenii Rudnyi
- compiling taucs problem (Re: solving Ax=b with sparse A)
- From: H.S.
- solving Ax=b with sparse A
- Prev by Date: Re: Shallow water equations - finite difference integration
- Next by Date: numerical solution of differential equation with convolution
- Previous by thread: compiling taucs problem (Re: solving Ax=b with sparse A)
- Next by thread: Re: compiling taucs problem (Re: solving Ax=b with sparse A)
- Index(es):
Relevant Pages
|