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: a_disabatino
Subject: Re: Problem to link customer external library into octave
Date: Fri, 2 Feb 2007 12:38:50 +0100

Hi, 

many thanks for you help,

I tried,  to add  extern "C" ,
but  I have got  the same errors. 

seems looking for  bad_alloc  symbol is refering the  namespace std  for  
allocator class. 
it is strange. !!

Thanks a lot  again
Antonio

############################################################


GNU Octave, version 2.1.73 (sparc-sun-solaris2.8).
Copyright (C) 2006 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <address@hidden> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

octave:1> varweight2
error: ld.so.1: octave: fatal: relocation error: file 
/usr/local/lib/libStatistics.so: symbol __1cDstdJbad_allocG__vtbl_: referenced 
symbol not found
octave:1>

########################################################

---------- Initial Header -----------

>From      : "Muthiah Annamalai" address@hidden
To          : "a_disabatino" address@hidden
Cc          : "help-octave" address@hidden
Date      : Thu, 01 Feb 2007 10:45:23 -0600
Subject : Re: Problem to link customer external library into  octave







> 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
> 
> 
> 


------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada02feb07





reply via email to

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