[Top][All Lists]

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

[Help-glpk] compile with c++

From: Marton Makai
Subject: [Help-glpk] compile with c++
Date: Tue, 21 Sep 2004 21:48:20 +0200 (CEST)

A suggestion for easier use with c++ programs is to include the
following code in glpk.h:
/* let's please C++ users */
#ifdef __cplusplus
extern "C" {

#include "glpios.h"
#include "glplib.h"
#include "glplpx.h"

#ifdef __cplusplus

Thereafter you can include glpk with:
#include <glpk.h>
instead of the circumstantial code:
extern "C" {
   #include "glpk.h"

           Makai Marton

e-mail: address@hidden

reply via email to

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