From bug-request at octave dot org Thu Jan 12 11:54:02 2006 Subject: Compiling octave with Intel C++/Fortran compilers on Linux From: "John W. Eaton" To: "Tetsuji \"Maverick\" Rai" Cc: bug at octave dot org Date: Thu, 12 Jan 2006 12:53:53 -0500 On 12-Jan-2006, "Tetsuji \"Maverick\" Rai" wrote: | I've successfully compiled octave with Intel C++/Fortran compiler on | Gentoo Linux on P4 to make it faster and probably more accurate (because | it's more accurate than gcc-3.4.4 with proper options.) But I needed a | tweak, so I write diff here. | | It's in src/oct-stream.cc, and the diff for 2.1.72 is | | *** ../../octave-2.1.72/src/oct-stream.cc Sat Nov 12 04:48:27 2005 | - ---- ./oct-stream.cc Thu Jan 12 05:47:20 2006 | *************** | *** 1143,1148 **** | - ---- 1143,1149 ---- | octave_scan (std::istream&, const scanf_format_elt&, float*); | #endif | | + #if !defined(__INTEL_COMPILER) // TMR | template <> | std::istream& | octave_scan (std::istream& is, const scanf_format_elt& fmt, double* | valptr) | *************** | *** 1317,1323 **** | | return is; | } | ! | template std::istream& | octave_scan (std::istream&, const scanf_format_elt&, double*); | | - ---- 1318,1324 ---- | | return is; | } | ! #endif //TMR | template std::istream& | octave_scan (std::istream&, const scanf_format_elt&, double*); You have not reported what problem this patch solves. Precisely what error message or problem do you see without the patch? Perhaps there is a better fix that would not require the ifdef. jwe ------------------------------------------------------------- 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 -------------------------------------------------------------