From help-request at octave dot org Sat Nov 12 13:30:51 2005 Subject: Octave chokes on this in some systems From: Shai Ayal To: help at octave dot org Date: Sat, 12 Nov 2005 21:26:05 +0200 This is a multi-part message in MIME format. --Boundary_(ID_i5oNLphJXgIyUXYDlW86ZA) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT Hi all, I'm attaching a very small test file which works fine for me using 2.1.71 on cygwin (pre-built binary) & on fc3 (self compiled) but causes a core dump on Peter Jensen's system, which is: debian testing octave 2.1.71 installed from binary octave-2.1.71-5 gcc: 4.0.2 (Debian 4.0.2-2) Is it my lousy programming or are we on to something? I have a gut feeling this is connected to some difference between gcc-3 and gcc-4 Instructions: save in a directory of your choice and then: mkoctfile test_caller.cc ln -s test_caller.oct test_callee.oct octave test_caller Shai --Boundary_(ID_i5oNLphJXgIyUXYDlW86ZA) Content-type: text/plain; name=test_caller.cc Content-transfer-encoding: 7BIT Content-disposition: inline; filename=test_caller.cc #include "oct.h" #include "parse.h" DEFUN_DLD (test_callee, args, nargout,"") { octave_value_list retval; int nargin = args.length (); std::string cmd = args(0).string_value(); retval(0) = false; return retval; } DEFUN_DLD (test_caller, args, nargout,"") { octave_value_list args1; args1(0)="redraw"; feval("test_callee",args1); octave_value_list retval; retval(0) = false; return retval; } --Boundary_(ID_i5oNLphJXgIyUXYDlW86ZA)-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------