lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] c++ compilation issues


From: Siva Velusamy
Subject: [lwip-devel] c++ compilation issues
Date: Thu, 13 Dec 2007 15:04:51 -0800

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

Attachment: missing_typecasts.patch
Description: Binary data


reply via email to

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