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?