[Top][All Lists]

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

Re: [Bug-glpk] Please add extern "C"

From: Andrew Makhorin
Subject: Re: [Bug-glpk] Please add extern "C"
Date: Tue, 10 Sep 2002 17:08:43 +0400

>  Please add extern "C" to glpk.h to use glpk from C++ programs.

If you are using glpk routines in a C++ program, you need to
explicitly specify the C linkage as follows:

extern "C" {
#include "glpk.h"

This is intentionally not included in the header glpk.h because glpk
being entirely written in C can be compiled by a pure C compiler which
knows nothing about extern "C".

reply via email to

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