[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Re: help linking glpk with visual c++
From: |
s chakhar |
Subject: |
[Help-glpk] Re: help linking glpk with visual c++ |
Date: |
Sat, 12 Nov 2005 10:59:54 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
carles franquesa <carlesfranquesa <at> gmail.com> writes:
> 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
<at> <at> YAPAULPX <at> <at> PAD <at> Z)
> 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?
> thanks
>
> Carles
I have exactly the same problem. Please tell me if you found a solution.
- [Help-glpk] Re: help linking glpk with visual c++,
s chakhar <=