|
From: | Kendall Demaree |
Subject: | [Bug-glpk] C++ and glpk |
Date: | Fri, 20 Jun 2003 16:45:34 -0700 |
I have converted version 4.0 to run under the MSVC6, MSVC7,
and gcc3.2(cygwin) compilers
as C++ files. This took a bit of editing, but nothing complicated. The main issue was casting void
pointers to something else. About 500 lines of code were needed to be modified, but
these were trivial modifications that could easily be made to be compatible
with ANSI C compilers also. In the process I discovered a couple of items you may wish
to correct regardless of C++ compatibility. Found something that looks fishy in glplpx6a.c file. The line 1056 allocates SPX.refsp
as doubles but SPX header declares as int* in the glpspx.h file. glpmip1.c line
641: Allocating array of sizeof(void*) and assigning to IESITEM**. This probably works on all platforms but is a bit sloppy. If you want the exact changes to the files, I can send them, however
they are mixed in with the changes I made for C++. Kendall Demaree |
[Prev in Thread] | Current Thread | [Next in Thread] |