help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Help: Run GLPK with MS Visual C++


From: Hua Ni
Subject: Re: [Help-glpk] Help: Run GLPK with MS Visual C++
Date: Thu, 25 Apr 2002 12:59:31 -0700 (PDT)

Thank you, Ricardo and Andrew. It worked beautifully.

Hua

--- Andrew Makhorin <address@hidden> wrote:
> >Could anyone please tell me how, step by step, to
> >compile library of GLPK to be used with MS Visual
> C++
> >6.0?
> 
> Ricardo sent you a makefile, but it is to some old
> version of glpk.
> You can use the bat (see below), which allows you
> making the library
> glpk.lib and the solver executable glpsol.exe using
> msvc++ 6.0 for
> *any* version of glpk. Just copy this bat into the
> glpk directory
> (after unzipping and untaring) and run it right
> there. (Of course, you
> should properly set all environment variables for
> msvc before.)
> 
> rem /* msvc60.bat */
> rem /* this bat makes glpk.lib and glpsol.exe using
> msvc++ 6.0 */
> rem /* copy this bat into the glpk directory and run
> it there */
> del glpk.lib
> del glpsol.exe
> deltree /y temp
> md temp
> cd temp
> copy ..include*.h
> copy ..source*.c
> cl.exe /O2 /G5 /c *.c
> dir /b *.obj > obj
> lib.exe @obj /out:glpk.lib
> copy ..sampleglpsol.c
> cl.exe glpsol.c glpk.lib
> cd ..
> copy tempglpk.lib
> copy tempglpsol.exe
> deltree /y temp
> .glpsol.exe sampleplan.mps
> rem /* eof */
> 
> 
> 
> 
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-glpk


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/



reply via email to

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