Re: SparseLib and c++

From: Richard Mathar (mathar_at_amer.strw.leidenuniv.nl)
Date: 11/28/04


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'



Relevant Pages

  • Re: How to define and use Global Variables?
    ... I have read the "extern" documents at MSDN. ... In Visual C++ .NET Windows Forms's header files, I am not sure about where to put my references to my variables and where to define them externally. ... In MSDN the samples codes show this as in .cpp file. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Error Building GDI+ Sample on VC++ 6
    ... everything to compile. ... header files automatically including what they needed, ... one of the cardinal rules of C/C++ (as ... references. ...
    (microsoft.public.vc.mfc)
  • Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
    ... I have tried to adopt Quicktime for a number of my media ... The sample code is fairly old, but mostly still valid and the reference ... header files to include or what the paths are to those header files ...
    (comp.sys.mac.programmer.help)
  • Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
    ... to ditch that old Sound Manager code and use QuickTime to play ... I have tried to adopt Quicktime for a number of my media ... lot of the sample code is as old as or older than half a decade, ... header files to include or what the paths are to those header files ...
    (comp.sys.mac.programmer.help)
  • Re: Base64 Encoding Library
    ... Fletcher Glenn wrote: ... >> Please help me with sample code to use it if it is available. ... header files, and couldn't find it, though. ... Which part of the API? ...
    (comp.unix.programmer)