2009-10-04 00:33:07 UTC
I've gotten cmake working fine but it seems that one of the files is not written correctly. Here is the error I'm getting when I run make after a successful cmake.
make
Scanning dependencies of target tuxcap
[ 1%] Building CXX object tuxcap/lib/CMakeFiles/tuxcap.dir/Ratio.o
[ 1%] Building CXX object tuxcap/lib/CMakeFiles/tuxcap.dir/Buffer.o
[ 2%] Building CXX object tuxcap/lib/CMakeFiles/tuxcap.dir/SexyAppBase.o
[ 2%] Building CXX object tuxcap/lib/CMakeFiles/tuxcap.dir/MTRand.o
In file included from /home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:38:
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:13: error: ‘uint32t’ does not name a type
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:18: error: expected ‘)’ before ‘seed’
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:22: error: ‘uint32t’ has not been declared
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:23: error: ‘uint32t’ does not name a type
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:24: error: ‘uint32t’ does not name a type
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:25: error: ‘uint32t’ does not name a type
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/include/MTRand.h:26: error: ‘uint32t’ does not name a type
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:69: error: expected ‘)’ before ‘seed’
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp: In member function ‘void Sexy::MTRand::SRand(const std::string&)’:
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:97: error: ‘mt’ was not declared in this scope
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp: At global scope:
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:103: error: variable or field ‘SRand’ declared void
/home/stephen/Download/libtuxcap-1.4.0/tuxcap/lib/MTRand.cpp:103: error: ‘uint32_t’ was not declared in this scope
make[2]: *** [tuxcap/lib/CMakeFiles/tuxcap.dir/MTRand.o] Error 1
make[1]: *** [tuxcap/lib/CMakeFiles/tuxcap.dir/all] Error 2
make: *** [all] Error 2
It seems uint32_t is not declared or something and it is throwing off the compiler. Anyone else have this problem or know how to fix it?