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