octave-maintainers
[Top][All Lists]
Advanced

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

Problems building on OSX


From: John Swensen
Subject: Problems building on OSX
Date: Mon, 22 May 2006 09:41:32 -0600
User-agent: Thunderbird 1.5.0.2 (Windows/20060308)

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.  Before the patch, it
was choking and saying it didn't have an operator== that could compare a
streampos against a streampos.  Since a streampos can be cast to a
streamoff safely, that is how I fixed it.  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.

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 );



-John



reply via email to

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