[greenstone-users] Compiling Greenstone 2.41 on MacOSX

From Carl Jones
DateTue, 9 Dec 2003 18:20:29 -0500
Subject [greenstone-users] Compiling Greenstone 2.41 on MacOSX
Hi,

I tried compiling 2.41 source for MacOSX (10.2 and 10.3 respectively)
but was unsuccessful, unfortunately (see below).

Carl

Carl Jones
Massachusetts Institute of Technology Libraries
Systems and Technology Services
77 Mass. Ave.
Cambridge, MA 02139
USA
----


Got the same errors on both platforms.

gcc -g -O2 -o ppthtml ppthtml.o ../cole/libcole.a
making all in isis-gdl
g++ *.cpp -o IsisGdl
CRC32.cpp: In function `long unsigned int CalcCRC32(std::fstream&)':
CRC32.cpp:100: no matching function for call to
`std::basic_fstream<char,
std::char_traits<char> >::get(unsigned char&)'
/usr/include/gcc/darwin/3.1/g++-v3/bits/istream.tcc:513: candidates are:
typename _Traits::int_type std::basic_istream<_CharT,
_Traits>::get() [with
_CharT = char, _Traits = std::char_traits<char>]
/usr/include/gcc/darwin/3.1/g++-v3/bits/istream.tcc:545:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(_CharT&) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/gcc/darwin/3.1/g++-v3/bits/istream.tcc:579:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(_CharT*, int, _CharT) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/gcc/darwin/3.1/g++-v3/istream:162:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(_CharT*, int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/include/gcc/darwin/3.1/g++-v3/bits/istream.tcc:619:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(std::basic_streambuf<_CharT, _Traits>&, _CharT) [with
_CharT =
char, _Traits = std::char_traits<char>]
/usr/include/gcc/darwin/3.1/g++-v3/istream:169:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(std::basic_streambuf<_CharT, _Traits>&) [with _CharT =
char,
_Traits = std::char_traits<char>]
In file included from mytchar.h:29,
from stdafx.h:36,
from CacheMan.cpp:27:
tchar.h:1038:1: warning: "_T" redefined

.
.
.