Thread: lapack using c++

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    16

    lapack using c++

    i installed lapack on my ubuntu system and it works with gcc compiler. However when i changed to g++ it gives me the error: undefined reference to `clapack_dgetrf(CBLAS_ORDER, int, int, double*, int, int*)'

    my original compile code is: gcc testlapack2.c -o testlapack2 -llapack_atlas -llapack -lblas -latlas -lm

    all I changed was g++. And then, I also tried extern "C" but it doesn't help either. DDD:

    any help would be appreciated

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Use lapack++ with your C++ compiler

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MATLAB user trying to use gcc in cygwin (with BLAS and LAPACK)
    By greek_tragedy in forum C Programming
    Replies: 0
    Last Post: 07-23-2007, 02:29 PM
  2. LAPCK and CLAPACK
    By Marv in forum Tech Board
    Replies: 0
    Last Post: 05-29-2007, 01:03 PM
  3. LAPACK linking...
    By ashesh in forum Tech Board
    Replies: 2
    Last Post: 08-18-2003, 03:42 AM