[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems building on OSX
From: |
John W. Eaton |
Subject: |
Problems building on OSX |
Date: |
Mon, 22 May 2006 12:22:37 -0400 |
On 22-May-2006, John Swensen wrote:
| Here is a patch for a change I had to make to get octave to compile on
| OSX 10.4 with the Apple GCC/G++ and the fink G95.
What version of GCC is that?
| Before the patch, it
| was choking and saying it didn't have an operator== that could compare a
| streampos against a streampos.
Can you please send the precise text of the error message?
| Also, for some reason, the
| Makeconf that was generated had an UGLY_DEFS that resulted in a DEFS
| that contained an unmatched number of \ (slashes). When trying to
| compile any file that included oct-conf.h, it complained that
| OCTAVE_CONF_DEFS has and illegal escape sequence of \040 (a space).
| This was because there was an unmatched \ before a space.
What sed do you have?
| Index: src/load-save.cc
| ===================================================================
| RCS file: /cvs/octave/src/load-save.cc,v
| retrieving revision 1.213
| diff -u -n -r1.213 load-save.cc
| d1684 3
| a1686 3
| std::streamoff tmp1 = static_cast<std::streamoff> (0);
| std::streamoff tmp2 =
| static_cast<std::streamoff>((file.rdbuf ())->pubseekoff (0, std::ios::cur));
| bool write_header_info = ( tmp2 == tmp1 );
| d1706 3
| a1708 3
| std::streamoff tmp1 = static_cast<std::streamoff> (0);
| std::streamoff tmp2 =
| static_cast<std::streamoff>((file.rdbuf ())->pubseekoff (0, std::ios::cur));
| bool write_header_info = ( tmp2 == tmp1 );
|
Please send this as a diff -u (don't use -n). Then there would be
some context in the diff, not just the lines that are deleted or
added.
Thanks,
jwe