Martin Spott wrote:

Hello,
with current PLIB CVS or plib-1.8.1 I see the following error:

make[3]: Entering directory `/usr/local/src/FlightGear/src/FDM/ExternalNet'
if g++ -march=pentium3 -DHAVE_CONFIG_H -I. -I. -I../../../src/Include -I../../.. -I../../../src  
-I/opt/gnu/include -I/usr/local/include -I/usr/local/FlightGear/include -I/usr/X11R6/include  
-O2 -msse -mfpmath=sse -fomit-frame-pointer -D_REENTRANT -MT ExternalNet.o -MD -MP -MF 
".deps/ExternalNet.Tpo" \
 -c -o ExternalNet.o `test -f 'ExternalNet.cxx' || echo './'`ExternalNet.cxx; \
then mv -f ".deps/ExternalNet.Tpo" ".deps/ExternalNet.Po"; \
else rm -f ".deps/ExternalNet.Tpo"; exit 1; \
fi
In file included from ExternalNet.cxx:34:
ExternalNet.hxx:43: error: parse error before `*' token
ExternalNet.hxx:47: error: `host' was not declared in this scope
ExternalNet.hxx:47: error: `port' was not declared in this scope
[...]


Unfortunately I don't have the skills to tell what's wrong here,


Martin.



Plib's netSocket.h defines (well used to prior to the 1.8.0 release) cchar as:


typedef const char cchar;

This was removed.

We used it in our code because we were deriving a class from a class that used cchar * However, cchar was remvoed from netSocket.h so it's definition doesn't exist anymore for us to use. We can change instances of cchar * to const char * in our code and we should be ok. Although there could be compilers that will barf when trying to compile against older versions of plib if they can't figure out that cchar * and const char * are the same thing.

Curt.

--
Curtis Olson   HumanFIRST Program               FlightGear Project
Twin Cities    curt 'at' me.umn.edu             curt 'at' flightgear.org
Minnesota      http://www.flightgear.org/~curt  http://www.flightgear.org



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to