[Lapackpp-devel] undefined reference problem
Status: Beta
Brought to you by:
cstim
|
From: Andrew O. <end...@gm...> - 2006-05-23 04:23:19
|
Hey
I tried compiling a simple "hello world" program and I get these errors:
tg-login1 /users/aoh> g++ test.cc -I/usr/local/apps/mpich-gm/include
-L/usr/local/apps/mpich-gm/lib -lmpich
-I/usr/local/apps/lapackpp-2.4.8/include/lapackpp
-L/usr/local/apps/lapackpp-2.4.8/lib -llapackpp
-I/users/aoh/random/include
In file included from /usr/include/g++/backward/iostream.h:31,
from test.cc:7:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header.
Please consider using one of the 32 headers found in section 17.4.1.2
of the C++ standard. Examples include substituting the <X> header for
the <X.h> header for C++ includes, or <sstream> instead of the
deprecated header <strstream.h>. To disable this warning use
-Wno-deprecated.
/usr/local/apps/intel/compiler8/lib/libimf.so.6: warning: log2l is not
implemented and will always fail
/usr/local/apps/intel/compiler8/lib/libimf.so.6: warning: exp2l is not
implemented and will always fail
/usr/local/apps/intel/compiler8/lib/libcxa.so.6: undefined reference
to `__ashldi3'
/usr/lib/liblapack.so.3: undefined reference to `z_abs'
/usr/lib/liblapack.so.3: undefined reference to `c_sqrt'
/usr/lib/liblapack.so.3: undefined reference to `f_cpstr'
/usr/lib/liblapack.so.3: undefined reference to `f_iob'
/usr/lib/liblapack.so.3: undefined reference to `f_cpystr'
/usr/lib/liblapack.so.3: undefined reference to `f_concat'
/usr/lib/liblapack.so.3: undefined reference to `f_stop'
/usr/lib/liblapack.so.3: undefined reference to `z_exp'
/usr/local/apps/intel/compiler8/lib/libcxa.so.6: undefined reference
to `__ashrdi3'
/usr/lib/liblapack.so.3: undefined reference to `c_exp'
/usr/lib/liblapack.so.3: undefined reference to `z_sqrt'
/usr/lib/liblapack.so.3: undefined reference to `c_abs'
/usr/local/apps/intel/compiler8/lib/libcxa.so.6: undefined reference
to `__muldi3'
collect2: ld returned 1 exit status
---
I attached the simple program. All I do is include some lapack++
header files. Thanks for your help!!
Andy
|