Thanks Allin.
What does nm /app/devtools/liblapack3-3.2.0-5/lib64/liblapack.so.3 \ |
grep dgecon show? That symbol should be defined in liblapack.
Hmmm. nm actually didn't recognize the file. But I did a "strings" and
was able to see the symbol.
sganguly@nyl06a-6632$ nm
/app/devtools/liblapack3-3.2.0-5/lib64/liblapack.so.3.2.0 | grep dgecon
nm: /app/devtools/liblapack3-3.2.0-5/lib64/liblapack.so.3.2.0: File
format not recognized
But,
sganguly@nyl06a-6632$ strings
/app/devtools/liblapack3-3.2.0-5/lib64/liblapack.so.3.2.0 | grep dgecon
dgecon_
dgecon
dgecon.f
dgecon
dgecon_
dgecon.f
dgecon.f
dgecon_
Maybe my liblapack.so is bad.
Also, what does
ldd /app/devtools/gretl-1.8.0.org/lib/libgretl-1.0.so
show? That library should be linked against liblapack.
That's true too. My libgretl wasn't linked against liblapack.so like
yours. But, how do I get it to?
sganguly@nyl06a-6632$ ldd
/app/devtools/gretl-1.8.0.org/lib/libgretl-1.0.so
libm.so.6 => /lib64/libm.so.6 (0x00002aef6c4f1000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002aef6c647000)
libgmp.so.3 => /app/devtools/gmp-4.2.4/lib/libgmp.so.3
(0x00002aef6c74b000)
libc.so.6 => /lib64/libc.so.6 (0x00002aef6c889000)
/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
Sunandan Ganguly
CREDIT SUISSE
Direct: (212) 325-0673
e-mail: sunandan.ganguly(a)credit-suisse.com
Please follow the attached hyperlink to an important disclosure:
http://www.credit-suisse.com/legal/marketcommentary
-----Original Message-----
From: gretl-users-bounces(a)lists.wfu.edu
[mailto:gretl-users-bounces@lists.wfu.edu] On Behalf Of Allin Cottrell
Sent: Thursday, April 30, 2009 3:44 PM
To: Gretl list
Subject: Re: [Gretl-users] Using the libgretl shared library in C++
On Thu, 30 Apr 2009, Ganguly, Sunandan wrote:
Has anyone out there ever tried to use the api-s within the shared
library from inside a C++ program?
No, but...
I get this linker error :
/app/devtools/gcc-4.3.3/bin/g++ -m64 -mtune=opteron -lpthread Main.o
-L/app/devtools/gretl-1.8.0.org/lib -lgretl-1.0
-L/app/devtools/zlib-1.2.3/lib -lz -L/app/devtools/libxml2-2.7.3/lib
-lxml2 -L/app/devtools/glib-2.14.6/lib -lglib-2.0
-L/app/devtools/refblas3-3.0-11/lib64/libblas.so.3.0.0
-L/app/devtools/liblapack3-3.2.0-5/lib64/liblapack.so.3
-L/app/devtools/fftw-3.2.1/lib -lfftw3
-L/app/devtools/gcc-4.3.3/lib64/libgfortran.so.1 -o Application.x
/app/devtools/gretl-1.8.0.org/lib/libgretl-1.0.so: undefined reference
to `dgecon_'
On my system:
waverley:~$ nm /usr/lib/liblapack.so.3 | grep dgecon 0016fca0 T dgecon_
waverley:~$ ldd /opt/esl/lib/libgretl-1.0.so
linux-gate.so.1 => (0xb7f28000)
liblapack.so => /usr/lib/liblapack.so (0xb7634000)
<etc>
PS: I have a suggestion as well - I think its best to avoid using C++
keywords such as "new" and "template" inside the C code for gretl as
this also causes trouble to folks that are trying to use the shared
lib from C++.
Fair point; I'll make that change.
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
===============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================