[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ and Objective-C: Foundation/NSNetServices.h problem (base 1.14.0
From: |
Fred Kiefer |
Subject: |
Re: C++ and Objective-C: Foundation/NSNetServices.h problem (base 1.14.0) |
Date: |
Mon, 02 Jul 2007 17:58:40 +0200 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20060911) |
Richard has fixed this in SVN on the 15th of May. Anyway, thank you for
the patch :-)
Fred
Lucas Schnorr wrote:
> 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 <http://main.mm>) with Foundation/Foundation.h
> (gnustep-base version 1.14.0),
> the gcc gives me a message like this:
> main.mm:22 <http://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
> Discuss-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep