lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] c++ compilation issues


From: Frédéric BERNON
Subject: Re: [lwip-devel] c++ compilation issues
Date: Fri, 14 Dec 2007 00:10:15 +0100

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]