lapack using c++

This is a discussion on lapack using c++ within the C++ Programming forums, part of the General Programming Boards category; i installed lapack on my ubuntu system and it works with gcc compiler. However when i changed to g++ it ...

  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
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,628
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21