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 5:51 PM, Andrew Makhorin <[email protected]> wrote: > > 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...? > > Take the example program example/sample.c (it is included in the glpk > distribution) and try to make it working. > > If you do not have enough skills in C/C++ programming, you can find a lot > of tutorials in the internet. > > > > > > _______________________________________________ > 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
