help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] help linking glpk with visual c++


From: Andrew Makhorin
Subject: Re: [Help-glpk] help linking glpk with visual c++
Date: Wed, 19 Oct 2005 13:14:20 +0400

> Solving a MIP is required by my application developed in VC60.
> 
> So far, it is able to save on disk the MPS file. I would like glpk read the 
> file anf solve it.
> 
> 
> So, after having written the MPS, I use the sentences:
>   
>     LPX* prob;
>     prob = lpx_read_mps(filenamemps);
> 
> in a file with the heading
>  
>     #include <glplpx.h>
> 
> (since I have header files together in my own include directory)
> 
> By then, I got the unresolved external:
> 
> error LNK2001: unresolved external symbol "struct LPX * __cdecl 
> glp_lpx_read_mps(char *)" (?glp_lpx_read_mps@@YAPAULPX@@address@hidden)
> 
> 
> So I looked for it in this help, and I found that what I had to do was just 
> putting
> 
> extern "C"
> {
>     #include <glplpx.h>
> }
> 
> what leads me to more than one hundred unresolved externals...
> 
> 
> could somebody help me?

Use make file 'w32vc6.mak' included in glpk distribution to compile
glpk library using vc6 (for details see comments within those files).
Then specify glpk include directory and its object library (glpk.lib)
in vc6 ide.





reply via email to

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