Player 1.5 does not fully compile on my machine right
out of the distribution.
2.4.20 smp kernel, 2 processors, ungodly amounts of
RAM, gcc 2.96, glibc 2.2.5
examples/c++/manualGrip.cc does not compile
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../server
-I../../client_libs/c++ -g -O2 -c manualGrip.cc
manualGrip.cc: In function `int main (int, char **)':
manualGrip.cc:113: `::string' undeclared (first use here)
manualGrip.cc:113: parse error before `;'
manualGrip.cc:114: `str' undeclared (first use this
manualGrip.cc:114: (Each undeclared identifier is
reported only once
for each function it appears in.)
make: *** [manualGrip.o] Error 1
I am not a c++ programmer (pure C for me) so I just
googled for the error, and came up with somebody else
who had a similar problem with a different peice of
The reply was that it was incorrect to
in c++; but that rather one should
manualGrip.cc does #include<string.h>, rather than
I don't understand the whats and whys of this, but when
I removed the .h, it did fix the problem.
-- Jason Fleischer
Log in to post a comment.