[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] c++ compilation issues
From: |
Siva Velusamy |
Subject: |
Re: [lwip-devel] c++ compilation issues |
Date: |
Thu, 13 Dec 2007 15:51:12 -0800 |
Whoops, sorry then. I did not realise that as I do not stay in touch
with CVS_HEAD. I've been working off lwIP 1.2.0. If this has already
been added, please ignore the patch.
-Siva
On Dec 13, 2007 3:10 PM, Frédéric BERNON <address@hidden> wrote:
> Isn't it done in last CVS HEAD ?
>
>
> ----- Original Message -----
> From: "Siva Velusamy" <address@hidden>
> To: <address@hidden>
> Sent: Friday, December 14, 2007 12:04 AM
> Subject: [lwip-devel] c++ compilation issues
>
>
> > Hello,
> >
> > When attempting to compile lwIP with g++, there are a number of errors
> > thrown, all of which are due to missing typecasts. I've attached a
> > simple patch that shows all the locations that need to be changed.
> >
> > Besides this, it is also a good practice to protect all function
> > declarations in all header files with extern "C", so that the files
> > can be compiled with g++ or gcc. e.g.:
> >
> > #ifdef __cplusplus
> > extern "C" {
> > #endif
> >
> > int foo();
> >
> > #ifdef __cplusplus
> > };
> > #endif
> >
> > Unfortunately this would touch pretty much all header files, but would
> > be a nice thing to have.
> >
> > Siva
> > --
> > In the end, everything is a gag.
> > Charlie Chaplin
> >
>
>
> --------------------------------------------------------------------------------
>
>
> > _______________________________________________
> > lwip-devel mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/lwip-devel
> >
>
>
>
>
> _______________________________________________
> lwip-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-devel
>
--
In the end, everything is a gag.
Charlie Chaplin