Am Donnerstag, 22. Juli 2010 00:58:46 schrieb Charles Yee: > Hi, > > I am running octave-3.3.51. I wanted to install the java-1.2.7 package. > Unfortunately, I got the following warnings and errors. Is there fix > available or work around? > > Thank you. > > -Charles > > pkg -verbose install java-1.2.7.tar.gz > __java__.cc: In function ‘std::string get_module_path(const std::string&, > bool)’: __java__.cc:223: error: ‘getcwd’ is not a member of ‘octave_env’
I compiled the java package succesfully with octave 3.3.52 (should work the same with 3.3.51) by changing the __java__.cc code. getcwd is no longer part of the octave api and is replaced by get_current_directory. So edit the __java__.cc file and replace every occurence of getcwd with get_current_directory. Then it will compile. I did only elementary tests (creating a java object and invoke one of the methods) but that worked so far. - mh ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
