help-glpk
[Top][All Lists]
Advanced

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

RE: [Help-glpk] For Windows


From: Robert Horvath
Subject: RE: [Help-glpk] For Windows
Date: Fri, 2 Apr 2004 12:49:12 +0200

>I have downloaded the UNIX version, is there a WINDOWS versiona which I
>should have downloaded?????

You could not download the "UNIX version" because there is only one version
for both UNIX and Windows. The whole glpk suite was written complying to
ANSI standards, so with no changes at all it can be compiled to both
systems. The only differences are stored in the files of the "sysdep"
folder.

>Please give me SPECIFIC step by step DIRECTIONS....

I have MS Visual Studio 6.0 SP5. 

1. Double-click on either w32vc6.mak or w32vc6d.mak depending on weather you
want to use the single threaded, or the multithreaded version.
2. The Studio is going to ask you weather you want to create a wrapper
project around the make file. Click yes. Save the project with the name
"glpsol".
3. Now you have a skeleton project.
4. Click on the "file view" tab on the workspaces window. Right click on
"glpsol files", click "add files to project" and add the full content of the
whole "src" (except for src\glplib1b.c), "include", "examples" directory,
and "sysdep\w32\glplib1b.c" (the latter one is the only system dependent
part of glpk).
5. Now go to Build->Rebuild All. And you have the whole project compiled.
6. You have glpsol.exe and glpk.lib in the same directory where w32vc6.mak
is.
7. If you want to run glpsol from within Studio, then you will need the
attached make file, which instructs the compiler to create browser info
files (in order to use the "Go to definition of ..." when you right click on
a function name). It also compiles debug info into the source to use all the
debugging functionality of Studio on glpsol. If you delete the "#" from the
beginning of line 27, and put a "#" to the beginning of line 28 of the
attached w32vc6.mak then Studio is going to give you an optimized glpsol.exe
without debugging capabilities. (after all this you have to rebuild all the
project).
8. You can set the command line arguments from Project->Settings->Debug ->
Program arguments


Hope this helped
Robert

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Din Rao
Sent: Monday, March 29, 2004 9:11 PM
To: address@hidden
Subject: [Help-glpk] For Windows
Importance: High

Hello,

I would like to know how to compile the API as a Microsoft Visual C++
project.

Please give me SPECIFIC step by step DIRECTIONS....

I have downloaded the UNIX version, is there a WINDOWS versiona which I
should have downloaded?????

or can I make the API from this UNIX download

Sorry for all these questions, I appreciate an answer

Thanx,
Din Rao



_______________________________________________
Help-glpk mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-glpk

Attachment: w32vc6.mak
Description: Binary data


reply via email to

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