From duncan at wald.ucdavis.edu  Sun Sep 11 22:13:32 2005
From: duncan at wald.ucdavis.edu (Duncan Temple Lang)
Date: Sun, 11 Sep 2005 13:13:32 -0700
Subject: [Rd] dyn.load error -- undefined symbol: ...
In-Reply-To: <4314EAF1@webmail.ncl.ac.uk>
References: <4314EAF1@webmail.ncl.ac.uk>
Message-ID: <43248FEC.4080008@wald.ucdavis.edu>



You should tell us what operating system you are working on.

If it is a Unix variant, you can use the command ldd:

    ldd interface.so

and see if and where it finds all the libraries against which you link.

(otool -L  on Mac OS X will give you similar information.)

Then make certain that the symbol N_VNew_Serial is defined in
one of those. You can find which symbols are available from
a library, etc. using the command nm -g


If you don't find your problem, you should post the
output from R CMD SHLIB ...  so that we can see
the link command and give you some suggestions as
to where to look.

   D.

nwew wrote:
> Dear R-developers,
> 
> I am working on an C interface to some c functions.
> I compiled the c file using R CMD SHLIB without any compilation errors. All 
> libs used are added to the LD_LIBRARY_PATH.
> 
> However dyn.load("interface.so")
> produces  undefined symbol: N_VNew_Serial;
> 
> which is defined in one of the libs I link against.
> Where, and how to start searching for the error?
> 
> Eryk
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] dyn.load error -- undefined symbol: ...
Duncan Temple Lang