From help-octave-request at bevo dot che dot wisc dot edu Mon Mar 22 19:59:36 1999 Subject: Bewildering '.oct' file behaviour From: "O. Scott Sands" To: help-octave at bevo dot che dot wisc dot edu Date: Mon, 22 Mar 1999 20:59:24 -0500 --------------166C01C85519AC9A8CD378B2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm working on getting some C code linked into octave through a C++ wrapper. The C code is a large signal processing chain (around 6000 lines) and has lots of include files. It is known to compile on a Sun under gcc (nothing fancy going on WRT the actual code. A C++ wrapper file has been written (by hand) to link the C code into octave. The problem comes when execution wanders outside the C++ wrapper. I get a message like.... octave: can't resolve symbol 'process_some_data__FPc' where 'process_some_data' is the name of a function that is defined in one of the C files. Bewildering behaviour: When the function declaration is deleted the symbol is resoved and the function is called. Proper operation has yet to be confirmed however things appear to be woking ok. It seems like I'm missing the point here. Is it well known that g++ doesn't like function delcarations? Can someone give me a reference or other clue? (note: ther is a log of complaining about undeclared functions but compilation, obviously, completes) Thanks in advance.... -- O. Scott Sands o dot s dot sands at ieee dot org --------------166C01C85519AC9A8CD378B2 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I'm working on getting some C code linked into octave through
a C++ wrapper. The C code is a large signal processing chain
(around 6000 lines) and has lots of include files. It is known to
compile on a Sun under gcc (nothing fancy going on WRT the
actual code.

A C++ wrapper file has been written (by hand) to link the
C code into octave. The problem comes when execution
wanders outside the C++ wrapper. I get a message
like....

octave:  can't resolve symbol 'process_some_data__FPc'

where 'process_some_data' is the name of a function that is
defined in one of the C files.

Bewildering behaviour: When the function declaration is deleted
the symbol is resoved and the function is called. Proper operation
has yet to be confirmed however things appear to be woking ok.

It seems like I'm missing the point here. Is it well known that
g++ doesn't like function delcarations? Can someone give me
a reference or other clue?
 
(note: ther is a log of complaining about undeclared functions
but compilation, obviously, completes)

Thanks in advance....

-- 

O. Scott Sands
o dot s dot sands at ieee dot org
  --------------166C01C85519AC9A8CD378B2--