fixedstring.h still continues to be an pain. After a
make clean
qmake
make
I get the errors mentioned below. I've installed qt4-dev (ubuntu, version
4.5)... am I missing something??
In file included from alphabetparameters.h:27,
from sim.h:26,
from computerplayer.h:24,
from bogowinplayer.h:24,
from bogowinplayer.cpp:23:
fixedstring.h: In constructor
`Quackle::FixedLengthString::FixedLengthString(const char*, unsigned int)':
fixedstring.h:109: error: `memcpy' was not declared in this scope
fixedstring.h: In constructor
`Quackle::FixedLengthString::FixedLengthString(const char*)':
fixedstring.h:126: error: `strlen' was not declared in this scope
fixedstring.h:128: error: `memcpy' was not declared in this scope
fixedstring.h: In copy constructor
`Quackle::FixedLengthString::FixedLengthString(const
Quackle::FixedLengthString&)':
fixedstring.h:136: error: `memcpy' was not declared in this scope
fixedstring.h: In member function `Quackle::FixedLengthString&
Quackle::FixedLengthString::operator=(const Quackle::FixedLengthString&)':
fixedstring.h:144: error: `memcpy' was not declared in this scope
fixedstring.h: In member function `void
Quackle::FixedLengthString::erase(char*)':
fixedstring.h:176: error: `memmove' was not declared in this scope
fixedstring.h: In member function `Quackle::FixedLengthString&
Quackle::FixedLengthString::operator+=(const Quackle::FixedLengthString&)':
fixedstring.h:212: error: `memcpy' was not declared in this scope
In file included from board.h:28,
from game.h:29,
from sim.h:27,
from computerplayer.h:24,
from bogowinplayer.h:24,
from bogowinplayer.cpp:23:
move.h: At global scope:
move.h:100: warning: type qualifiers ignored on function return type
move.h:103: warning: type qualifiers ignored on function return type
move.h:198: warning: type qualifiers ignored on function return type
move.h:208: warning: type qualifiers ignored on function return type
make: *** [obj/release/bogowinplayer.o] Error 1
--- In [email protected], Matt Liberty <matt.libe...@...> wrote:
>
> Forget the scons stuff and just use qmake instead.
> Matt
>
> On Sun, Jun 21, 2009 at 7:26 PM, lazyart <lazy...@...> wrote:
>
> >
> >
> > Attempting to make on Ubuntu Jaunty 64 bit.
> >
> > After running scons r=1 I get a slew of errors:
> >
> > --------------------------------
> > In file included from alphabetparameters.h:27,
> > from alphabetparameters.cpp:24:
> > fixedstring.h:69: error: 'string' in namespace 'std' does not name a type
> > fixedstring.h: In constructor
> > 'Quackle::FixedLengthString::FixedLengthString(const char*, unsigned int)':
> > fixedstring.h:109: error: 'memcpy' was not declared in this scope
> > fixedstring.h: In constructor
> > 'Quackle::FixedLengthString::FixedLengthString(const char*)':
> > fixedstring.h:126: error: 'strlen' was not declared in this scope
> > fixedstring.h:128: error: 'memcpy' was not declared in this scope
> > fixedstring.h: In copy constructor
> > 'Quackle::FixedLengthString::FixedLengthString(const
> > Quackle::FixedLengthString&)':
> > fixedstring.h:136: error: 'memcpy' was not declared in this scope
> > fixedstring.h: In member function 'Quackle::FixedLengthString&
> > Quackle::FixedLengthString::operator=(const Quackle::FixedLengthString&)':
> > fixedstring.h:144: error: 'memcpy' was not declared in this scope
> > fixedstring.h: In member function 'void
> > Quackle::FixedLengthString::erase(char*)':
> > fixedstring.h:176: error: 'memmove' was not declared in this scope
> > fixedstring.h: In member function 'Quackle::FixedLengthString&
> > Quackle::FixedLengthString::operator+=(const Quackle::FixedLengthString&)':
> > fixedstring.h:212: error: 'memcpy' was not declared in this scope
> > scons: *** [alphabetparameters.o] Error 1
> > scons: building terminated because of errors.
> > d...@tiger:~/quackle-0.96$ find . -name *.o | xargs rm
> > d...@tiger:~/quackle-0.96$ scons r=1
> > scons: Reading SConscript files ...
> > scons: done reading SConscript files.
> > scons: Building targets ...
> > g++ -o alphabetparameters.o -c -O2 alphabetparameters.cpp
> > In file included from alphabetparameters.h:27,
> > from alphabetparameters.cpp:24:
> > fixedstring.h:69: error: 'string' in namespace 'std' does not name a type
> > fixedstring.h: In constructor
> > 'Quackle::FixedLengthString::FixedLengthString(const char*, unsigned int)':
> > fixedstring.h:109: error: 'memcpy' was not declared in this scope
> > fixedstring.h: In constructor
> > 'Quackle::FixedLengthString::FixedLengthString(const char*)':
> > fixedstring.h:126: error: 'strlen' was not declared in this scope
> > fixedstring.h:128: error: 'memcpy' was not declared in this scope
> > fixedstring.h: In copy constructor
> > 'Quackle::FixedLengthString::FixedLengthString(const
> > Quackle::FixedLengthString&)':
> > fixedstring.h:136: error: 'memcpy' was not declared in this scope
> > fixedstring.h: In member function 'Quackle::FixedLengthString&
> > Quackle::FixedLengthString::operator=(const Quackle::FixedLengthString&)':
> > fixedstring.h:144: error: 'memcpy' was not declared in this scope
> > fixedstring.h: In member function 'void
> > Quackle::FixedLengthString::erase(char*)':
> > fixedstring.h:176: error: 'memmove' was not declared in this scope
> > fixedstring.h: In member function 'Quackle::FixedLengthString&
> > Quackle::FixedLengthString::operator+=(const Quackle::FixedLengthString&)':
> > fixedstring.h:212: error: 'memcpy' was not declared in this scope
> > scons: *** [alphabetparameters.o] Error 1
> > scons: building terminated because of errors.
> > -------------------------------
> >
> > Any ideas?
> >
> > Art Moore
> >
> >
> >
>