Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • dyn.load error -- undefined symbol: ...

    1 answers - 479 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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 (DOT) org mailing list
  • No.1 | | 1214 bytes | |

    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 S 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 (DOT) org mailing list

    R-devel (AT) r-project (DOT) org mailing list

Re: dyn.load error -- undefined symbol: ...


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "Development"

EMSDN.COM