Compilation problem using mkoctgfile

kfrancoi kfrancoi at gmail.com
Thu Dec 11 04:27:24 CST 2008


Hello everyone,

I just discovered the possibility to use the octave API to make C++ code. 
When I try to compile a very simple tutorial example with the following
command : mkoctfile helloworld.cpp

I get this warning : 

ld: warning, duplicate dylib /usr/local/lib/libstdc++.6.dylib
ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib

The compiler does generate two files : helloworld.o and helloworld.oct.

But when I try to execute them : helloworld(1,2,3)  it crashes with this
error :

error: `example' undefined near line 6 column 1  (even if my file doesn't
have 6 lines)

Does anyone have an idea of what my problem could be ?

Thank you very much

Kev

-- 
View this message in context: http://www.nabble.com/Compilation-problem-using-mkoctgfile-tp20952926p20952926.html
Sent from the Octave - General mailing list archive at Nabble.com.



More information about the Help-octave mailing list