help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem to link customer external library into octave


From: Muthiah Annamalai
Subject: Re: Problem to link customer external library into octave
Date: Thu, 01 Feb 2007 10:45:23 -0600

On Thu, 2007-02-01 at 12:20 +0100, a_disabatino wrote:
> Hi  everybody,
> 
> 
> let me post my problem, 
> I tried to link inside octave our statistics shared library 
> libStatistics.so ,
> 
> I typed :
> # mkoctfile  -L/usr/local/lib -lStatistics  varweigth.cc 
> 
> the comand  has compiled the file, I have got  "varweight.oct", file, 
> 
> but I have got  a intenal error inside octave,
> 
> 
> octave:1> varweight
> error: ld.so.1: octave: fatal: relocation error: file 
> /usr/local/lib/libStatistics.so: symbol __1cDstdJbad_allocG__vtbl_: 
> referenced symbol not found

I think making declarations and marking as extern in your sources could
help. Also consider using 

extern "C" { 
 #include<stats/monte-carlo.h>
}

I also helps to $make clean && make for your .oct file, and rebuild from
scratch.

I think these generally fixed my problems. 

- Muthiah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]