I'm using GLPK 4.8, and I notice that you still require C++ users to wrap extern "C" { ... } around the headers.

There is an easy way to make this automatic.  Just put:

#ifdef __cplusplus
extern "C" {
#endif                          /* __cplusplus */

at the beginning of your header file and

#ifdef __cplusplus
}                               /* extern "C" */
#endif                          /* __cplusplus */

at the end. (You'll find this kind of standard boilerplate in many other header files in /usr/include.)

Cordially,
Steven G. Johnson


_______________________________________________
Bug-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to