[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] gsl_matrix_fread problem
From: |
Fred J. |
Subject: |
Re: [Help-gsl] gsl_matrix_fread problem |
Date: |
Tue, 12 Oct 2004 11:00:11 -0700 (PDT) |
--- Kaustubh Patil <address@hidden> wrote:
> hi,
> try using typecasting the error line as,
>
> gsl_matrix_fread((FILE *)iF, m);
>
> check this & tell me if it works, it should.
>
I am working with c++ so,
gsl_matrix_fread(reinterpret_cast<FILE *>(iF), m);
main.cpp:30: error: invalid reinterpret_cast from type
`std::ifstream' to type `FILE*'
gsl_matrix_fread((FILE *)iF, m);
main.cpp:30: error: invalid conversion from `void*' to `FILE*'
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com