help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] running another example


From: hussin hassen
Subject: Re: [Help-glpk] running another example
Date: Sun, 17 May 2009 16:58:57 -0700 (PDT)

Thanks Andrew for your help.
Now I am able to run all (*.mod) examples, however I couldn't run (sample.c) 
example. I tried both ways:
on my MVC++ 2008 Express, I have created a new project with (sample.c) as a 
source code and (glpk.h) as a header file. After compiling I receive this error 
massege :"fatal error C1083: Cannot open include file: 'glpk.h': No such file 
or directory"

I tried also using MVC++ command prompt to compile (sample.c) example by typing:
C:\Documents and Settings\hhassen\My Documents\MY-GLPK-2\glpk-4.38\examples>cl 
sample.c

but I received exactly same error above : "fatal error C1083: Cannot open 
include file: 'glpk.h': No such file or directory"

Please let me know what shall I do next.

Thanks,

Hussin


--- On Sun, 5/17/09, Andrew Makhorin <address@hidden> wrote:

> From: Andrew Makhorin <address@hidden>
> Subject: Re: [Help-glpk] running another example
> To: "hussin hassen" <address@hidden>
> Cc: "Help-glpk" <address@hidden>
> Date: Sunday, May 17, 2009, 9:54 PM
> > Thanks for Andrew and xypron who
> answered my last questions,
> > Now I need help to solve the following problem:
> > When double clicking on either of the following files
> :
> > Build_GLPK_with_VC9.bat or
> Build_GLPK_with_VC9_DLL.bat
> > which are available on my folder:
> > C:\Documents and Settings\hhassen\My
> Documents\My-GLPK\glpk-4.38\w32.
> > I received a consol message showing the results of
> example : plan.mps
> > with: Optimum solution found.
> > That is fine because my (Makefile_VC9 and
> Makefile_VC9_DLL, on w32
> > folder) are both pointing to that example on the
> examples folder.
> > Now I want to run the following two examples, which
> are also available
> > on the same examples folder, and see their results :
> > (sample.c)  and  (assign.mod)
> > I modified the last line of the above make files
> into:
> > "check: glpsol.exe
> >         .\glpsol.exe --c
> ..\examples\sample.c"
> > to run sample.c , then, double clicking  on any
> of the above .bat
> > files produce an error consol message : Fatal Error
> U1077
> 
> There is no option '--c' in glpsol. To compile 'sample.c',
> which is
> a C program, you need to create msvc project in usual way
> or to use
> the msvc command-line compiler.
> 
> > TO run assign.mod example I did the same thing by
> modyfying the make
> > files last statment into:
> > "check: glpsol.exe
> >         .\glpsol.exe
> --mod ..\examples\assign.mod"
> 
> > same " Fatal Error U1077 " was received.
> 
> '--mod' option is invalid; use '--model' or simply '-m'.
> 
> > Can you please tell me what's wrong and how to run the
> above two
> > examples? I have Windows XP, Windows SDK, MVC++ 2008
> EXPRESS, MV studio
> > 2005 all installed on my laptop.
> 
> 
> 







reply via email to

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