Platform: Mac OSX 10.7.1 Octave 3.2.4 installed via MacPorts 2.0.3 Hello, octave-dev noobie here trying to learn how to embed octave in another app. I found the sample code for embedding octave at: http://octave.sourceforge.net/docs.html
test.cpp compiles cleanly, but I get prototype and namespace errors when trying to compile embed.cc rodimusprime:octave_embed mlewis$ mkoctfile -v -c embed.cc /opt/local/bin/g++-mp-4.4 -c -I/opt/local/include -I/opt/local/include -fPIC -I/opt/local/include/octave-3.2.4 -I/opt/local/include/octave-3.2.4/octave -I/opt/local/include -mieee-fp -I/opt/local/include/freetype2 -I/opt/local/include -pipe -O2 -m64 embed.cc -o embed.o In file included from embed.cc:17: embed.h:10: error: 'void octave_exit()' redeclared as different kind of symbol /opt/local/include/octave-3.2.4/octave/toplev.h:47: error: previous declaration of 'void (* octave_exit)(int)' embed.cc: In function 'void octave_exit()': embed.cc:23: error: 'void octave_exit()' redeclared as different kind of symbol /opt/local/include/octave-3.2.4/octave/toplev.h:47: error: previous declaration of 'void (* octave_exit)(int)' embed.cc: In function 'void recover_from_exception()': embed.cc:29: error: 'void recover_from_exception()' was declared 'extern' and later 'static' /opt/local/include/octave-3.2.4/octave/toplev.h:58: error: previous declaration of 'void recover_from_exception()' embed.cc: In function 'void recover_from_exception()': embed.cc:35: error: 'octave_allocation_error' was not declared in this scope embed.cc: In function 'int octave_call(const char*)': embed.cc:83: error: 'curr_sym_tab' was not declared in this scope embed.cc:83: error: 'top_level_sym_tab' was not declared in this scope is the sample code deprecated for some undocumented reason? any pointers appreciated thanks mlewis ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev