Hello, I am trying to mix Objective-C and C++ code to obtain a functionality from a C++ library, using the gnustep makefiles to handle the compilation. When I try to compile a file (main.mm) with Foundation/Foundation.h (gnustep-base version 1.14.0), the gcc gives me a message like this: main.mm:22: error: expected `}' at end of input
Tracking the missing `}' to the file Foundation/NSNetServices.h, it seems that the following code is missing just before the last #endif: #if defined(__cplusplus) } #endif I attached to this e-mail a patch to fix this. Hope it helps others. Lucas
--- /home/schnorr/misc/gnustep-startup-0.18.1/sources/gnustep-base-1.14.0/Headers/Foundation/NSNetServices.h 2006-12-27 15:11:14.000000000 +0100 +++ /usr/GNUstep/System/Library/Headers/Foundation/NSNetServices.h 2007-07-02 16:33:54.000000000 +0200 @@ -434,5 +434,9 @@ @end +#if defined(__cplusplus) +} +#endif + #endif /* __NSNetServices_h_GNUSTEP_BASE_INCLUDE */
_______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
