Hi, in VS2005, in order to run examples/sample.c (you must have compiled
glpk.lib previous to build the debug.exe in the vs project, using the
builder in w32 or w64, changing the c++ compiler path with
right-button->edit):

-create a new empty Win32 project (console application)
-move example/sample.c to the source code dir in the project
-in the navigation tree (right side), right-button over the project, select
"properties"
-config. properties->C/C++->aditional include dirs, browse the include dir
from glpk
-config. properties->Linker->command line, browse the glpk.lib file from
glpk
-build

try to add the following line at the end of the sample (it allows to see the
stardard output):

getc(stdin);


Saludos!

On Sat, Jan 31, 2009 at 8:50 AM, mylsov <[email protected]> wrote:

>
> Hi,
> could anyone explain step by step how to write an application with GLPK in
> c++ using VS2008 express?
>
> 1. First step is to create new project
> 2. How to add header glpk.h
> 3... what to do next...?
> --
> View this message in context:
> http://www.nabble.com/using-glpk-from-Visual-Studio-2008-express-c%2B%2B-tp21757831p21757831.html
> Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.
>
>
>
>
>
>
> _______________________________________________
> Help-glpk mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-glpk
>
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to