help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] gsl trouble with linux and g++


From: Michael Swartz
Subject: [Help-gsl] gsl trouble with linux and g++
Date: Tue, 07 Dec 2004 08:22:05 -0600
User-agent: Mozilla Thunderbird 0.7.1 (Windows/20040626)

Hello,

I have been using GSL with visual studio 6.0 and am currently trying to run it on linux with g++.

I wrote the test program:
#include<iostream>
#include <gsl/gsl_matrix.h>

using namespace std;


int main()
{
 int i,j;
 gsl_matrix *mat;
   mat = gsl_matrix_calloc(4,4);



       for (i=0;i<4;i++)
       {
       for(j=0;j<4;j++)
       {
               cout << gsl_matrix_get(mat,i,j) << " ";
       }
       cout <<"\n";
 }

}

type the following commands:
address@hidden:~/C-programs/SSVS-revision-8-31-03/test-ssvs]% g++ -c test-err-2.cpp address@hidden:~/C-programs/SSVS-revision-8-31-03/test-ssvs]% g++ test-err-2.o -lgsl -lcblas -l

and get the following error.
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lcblas
collect2: ld returned 1 exit status

Can anyone please tell me what I am doing wrong.

Thanks,
Michael Swartz

--
Research Assistant Professor
address@hidden
http://epi.mdanderson.org/~mswartz/

Texas A&M University                    M. D. Anderson Cancer Center
Department of Statistics                Department of Epidemiology
Blocker Bldg  433           and         HMB 2.220.56
ph: (979) 845-8883                      ph: 713-792-8264

- "If you collect tomorrows, you'll find all you have are empty yesterdays...
I'd rather make today worth remembering"
                        -Professor Harold Hill, The Music Man.

-- "You are who you are, even if you forget." -Agent K, Men In Black II




--===============0028517709==--




--
Research Assistant Professor
address@hidden
http://epi.mdanderson.org/~mswartz/

Texas A&M University                    M. D. Anderson Cancer Center
Department of Statistics                Department of Epidemiology
Blocker Bldg  433           and         HMB 2.220.56
ph: (979) 845-8883                      ph: 713-792-8264

- "If you collect tomorrows, you'll find all you have are empty yesterdays...
I'd rather make today worth remembering"
                        -Professor Harold Hill, The Music Man.

-- "You are who you are, even if you forget." -Agent K, Men In Black II





reply via email to

[Prev in Thread] Current Thread [Next in Thread]