help-glpk
[Top][All Lists]
Advanced

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

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


From: address@hidden
Subject: Re: [Help-glpk] Re: help linking glpk with visual c++
Date: Tue, 6 Dec 2005 18:32:37 +0100 (CET)

I have solved the problem simply by putting

extern "C"
{
#include  "glpk.h"
}

in my main function  and  than I compiled all the .c files in the src repository included in glpk-4.8  installation repository.

This permits to add .c files to the workingspace in which the main function in defined.

a+

 

 

 



 

> Message du 21/11/05 à 23h16
> De : "Andrew Makhorin"
> A : "s chakhar"
> Copie à : address@hidden
> Objet : Re: [Help-glpk] Re: help linking glpk with visual c++
>
> >> 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
> >> (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 PAD Z)
> >> So I looked for it in this help, and I found that what I had to do was
> >> just
> > putting
> >> extern "C"
> >> {
> >>     #include
> >> }
> >> 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.
>
> The following messages can help:
>
> http://lists.gnu.org/archive/html/help-glpk/2004-04/msg00006.html
>
> http://lists.gnu.org/archive/html/help-glpk/2003-11/msg00052.html
>
>
>
>

reply via email to

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