help-octave
[Top][All Lists]
Advanced

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

[no subject]


From: Mircea Toma
Date: Mon, 5 Dec 2011 08:35:58 -0800 (PST)

I try to test the examples in "A.1 Oct-Files" to understand them. I arrived at "Structures in Oct-Files" where I encountered an error "error: 'octave_scalar_map' declared in this scope.
Can't find a h file with  'octave_scalar_map'. Anyone say how how it can be solved.
Thanks,
Mircea T

======================================================================
cd C:\oct-test
mkoctfile structdemo.cpp
x.a = 1; x.b = "test"; x.c = [1, 2]; structdemo (x, "b")

-----------------------------------------------------------------------------
GNU Octave, version 3.2.4
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "i686-pc-mingw32".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <address@hidden> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

warning: mark_as_command is obsolete and will be removed from a future version o
f Octave
octave-3.2.4.exe:1> cd C:\oct-test
octave-3.2.4.exe:2> mkoctfile structdemo.cpp
structdemo.cpp: In function 'octave_value_list Fstructdemo(const octave_value_li
st&, int)':
structdemo.cpp:11: error: 'octave_scalar_map' was not declared in this scope
structdemo.cpp:11: error: expected ';' before 'arg0'
structdemo.cpp:19: error: 'arg0' was not declared in this scope
structdemo.cpp:23: error: expected ';' before 'st'
structdemo.cpp:25: error: 'st' was not declared in this scope
structdemo.cpp:6: warning: unused variable 'nargin'
mingw32-g++-4.4.0-dw2: structdemo.o: No such file or directory
octave-3.2.4.exe:3> x.a = 1; x.b = "test"; x.c = [1, 2]; structdemo (x, "b")
error: `structdemo' undefined near line 3 column 38
octave-3.2.4.exe:3==================================================== 



reply via email to

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