Re: SparseLib and c++
From: Richard Mathar (mathar_at_amer.strw.leidenuniv.nl)
Date: 11/28/04
- Next message: Richard Mathar: "Re: machine precision?"
- Previous message: tsmith: "adaptive gaussian quadrature"
- In reply to: Joe C: "SparseLib and c++"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 28 Nov 2004 15:45:31 +0000 (UTC)
This needs you have to tell g++ with an -I switch where you are
hiding the header files, probably with s.th. like
g++ -I. testSparse.C -o testSparse
In article <705bfa01.0411271350.1da9cafa@posting.google.com>,
cj5815@yahoo.com (Joe C) writes:
>Can someone tell me how to use SparseLib with the cygwin c++ complier?
>
>I installed the libaries using the make file as instructed by the readme files.
>I include the references to the header files (see program below)
>
>When I try to try to compile the programs it does not work?
>
>Am I referencing the library correctly?
>
>Does anyone have an sample code I code look at?
>
>Below is program I am using and the error I am getting.
>
>Thanks.
>
>Joe
>
>
>
>#include <iostream>
>#include <stdlib.h>
>
>#include "compcol_double.h"
>#include "comprow_double.h"
>#include "coord_double.h"
>#include "iohb_double.h"
> <snip snap snup>
>> $ g++ testSparse.cpp -o testSparse.exe
>testSparse.cpp:4:28: compcol_double.h: No such file or directory
>testSparse.cpp:5:28: comprow_double.h: No such file or directory
>testSparse.cpp:6:26: coord_double.h: No such file or directory
>testSparse.cpp:7:25: iohb_double.h: No such file or directory
>testSparse.cpp: In function `int main()':
>testSparse.cpp:14: error: parse error before `double'
>testSparse.cpp:26: error: 'CompRow_Mat_double' is used as a type, but is not
> defined as a type.
>testSparse.cpp:40: error: parse error before `return'
- Next message: Richard Mathar: "Re: machine precision?"
- Previous message: tsmith: "adaptive gaussian quadrature"
- In reply to: Joe C: "SparseLib and c++"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|