[Top][All Lists]

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

[Help-gsl] compiling svd

From: Bryan Lepore
Subject: [Help-gsl] compiling svd
Date: Thu, 22 Mar 2012 11:09:45 -0400

[ gsl 1.15 ]
[ g++ (Ubuntu/Linaro 4.4.4-14ubuntu5.1) 4.4.5 ]
[ make check appears OK ]
[ caveat : novice ]

I do not understand how to get singular value decomposition to work.

It appears one cannot simply pick the .c file out of the gsl build
directory and compile it. g++ gives a common error when attempting to
link svd.o (see below).

I *do* know how to compile and link the sample bessel function, and
the LU decomposition, and linalg/test.c, and they work as I expected.
I noticed that svd.c does not have `int main()`. wondering if I am
missing some documentation, or did not build properly, or making basic
programming errors, etc.


g++ output:

g++ -I$prefix/include -c svd.cpp
g++ -Wl,-V -L$prefix/lib svd.o -o fubar  -lgsl -lgslcblas -lm
GNU ld (GNU Binutils for Ubuntu) 2.20.51-system.20100908
  Supported emulations:
/usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status

reply via email to

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