help-octave
[Top][All Lists]
Advanced

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

Re: unknown symbol


From: Paul Kienzle
Subject: Re: unknown symbol
Date: Thu, 14 Aug 2003 19:12:38 -0400
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3) Gecko/20030312

E2 wrote:
I've defined some C functions in sausage_tree.h/sausage_tree.c and I
#included sausage_tree.h into opt_sausage.cc which I use mkoctfile to
build into a octave function.  mkoctfile compiles with no errors, but
when I attempt to run the opt_sausage function in octave, I get the
following error:

/usr/libexec/ld-elf.so.1: /usr/home/gatekeeper/robot/sausage/round2/opt_sausage.oct: 
Undefined symbol "s_node_new__FddP6s_node"

I do not have any symbols defined as "s_node_new_FddP6s_node".

The error can be eliminated by not calling a function "s_node_new( .....)"
(which is defined in sausage_tree.c) in opt_sausage.cc

sausage_tree.c compiles without error by itself.
With main() included sausage_tree.c runs without error by itself.

Does anybody know why the symbol "s_node_new__FddP6s_node" exists, or
how I can fix the error?


Perhaps sausage_tree.h doesn't protect against
being included in C++.  You could try:

        extern "C" {
           #include "sausage_tree.h"
        }

Paul Kienzle
address@hidden




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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