On 07/02/07 09:13, Jason Katz-Brown wrote:

> Hi all,
> 
> John O'Laughlin, John Fultz, Matt Liberty, and I are proud to announce
> Quackle 0.95, available for FREE download from

Hi Quackle authors,

I couldn't compile 0.95 with gcc 4.1.1 on Fedora Core 6. It produced the
following errors:

[EMAIL PROTECTED] quackle-0.95]$ scons r=1
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -O2 -c -o board.o board.cpp
fixedstring.h: In constructor
'Quackle::FixedLengthString::FixedLengthString(const char*, unsigned int)':
fixedstring.h:106: error: 'assert' was not declared in this scope
fixedstring.h: In constructor
'Quackle::FixedLengthString::FixedLengthString(unsigned int, char)':
fixedstring.h:115: error: 'assert' was not declared in this scope
fixedstring.h: In constructor
'Quackle::FixedLengthString::FixedLengthString(const char*)':
fixedstring.h:125: error: 'assert' was not declared in this scope
fixedstring.h: In member function 'Quackle::FixedLengthString
Quackle::FixedLengthString::substr(unsigned int, unsigned int) const':
fixedstring.h:187: error: 'assert' was not declared in this scope
fixedstring.h: In member function 'Quackle::FixedLengthString&
Quackle::FixedLengthString::operator+=(char)':
fixedstring.h:200: error: 'assert' was not declared in this scope
fixedstring.h: In member function 'Quackle::FixedLengthString&
Quackle::FixedLengthString::operator+=(const Quackle::FixedLengthString&)':
fixedstring.h:209: error: 'assert' was not declared in this scope
alphabetparameters.h: In member function 'const
Quackle::LetterParameter&
Quackle::AlphabetParameters::letterParameter(Quackle::Letter) const':
alphabetparameters.h:317: error: 'assert' was not declared in this scope
scons: *** [board.o] Error 1
scons: building terminated because of errors.


I fixed this by temporarily adding the following line to fixedstring.h:

#include <cassert>

I'm not an expert C/C++ programmer, so please fix this in a more elegant
way if there's one.

Regards,

-- 
Anand

Reply via email to