[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ compilation problem



> From: matthew.hook@xxxxxxx.nz
> Date: Wed, 25 Apr 2001 11:02:44 +1200

> I think because C++ thinks that ip_opts is the name of the structure as
> structures and classes are
> almost the same.  However in C ip_opts is not the name of the structure it
> is actually "struct ip_opts".
> 
> How can I get around this ?

Assuming no C++ code uses that structure (it can't use the
ip_opts member for sure), you can fix in.h by wrapping the
structure declaration in

#ifndef __cplusplus
...
#endif

and things should work.

brgds, H-P