Hi all,

I am new to Judy array and to make things worse I am a beginner at linux. So I 
was trying to use Judy on a Debian linux system (of which I have no root 
permission) and asked the administrator to install the package. He did it using 
apt-get. From what he told me, the header file could be found in /usr/include/ 
and the library file can be found at /usr/lib/. So I did my compilation/link 
with the following code (I am working on a matlab mex function):
=================
mex -I/usr/include -L/usr/lib/ -lJudy myfile.cpp ...
=================

But when I tried to compile and link a minimal example, it gave me the 
following error:
=================
-> g++ -g -pthread -shared 
-Wl,--version-script,/usr/local/matlab2007b/extern/lib/glnxa64/mexFunction.map 
-Wl,--no-undefined -o mex_test_cir_map_target.mexa64  mex_test_cir_map_target.o 
cir_mapping_functions.o bspline_functions.o mex_debug_functions.o 
cir_adapt_map_functions.o mexversion.o  -L/usr/lib/ -lJudy 
-Wl,-rpath-link,/usr/local/matlab2007b/bin/glnxa64 
-L/usr/local/matlab2007b/bin/glnxa64 -lmx -lmex -lmat -lm -lm

/usr/bin/ld: /usr/lib//libJudy.a(Judy1Test.o): relocation R_X86_64_32S against 
`a local symbol' can not be used when making a shared object; recompile with 
-fPIC
/usr/lib//libJudy.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
=================

I searched and found the following link: 
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3#doc_chap7
My interpretation is that I was linking dynamically against static archives 
(case 4). But I have no idea what to do. Whatever I need to do, I'll have to 
ask my administrator to do it for me. So I thought I should ask around to get a 
clear answer before I bothered him.

Thanks.




Best Regards,
 
Wei



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel

Reply via email to