help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Re: Calling glpk libs


From: Andrew Walbran
Subject: Re: [Help-glpk] Re: Calling glpk libs
Date: Thu, 13 Apr 2006 10:01:26 +1200
User-agent: KMail/1.8.3

On Thu, 13 Apr 2006 9:39 am, Davide Girlando wrote:
> Andrew Makhorin <mao <at> gnu.org> writes:
> > You do not need to install gnuwin32. See:
> > http://lists.gnu.org/archive/html/help-glpk/2006-04/msg00007.html
> > about compiling glpk with msvc. To compile glpk under linux use
> > the standard procedure (for details see file INSTALL).
>
> Thanks for your suggestions; however I didn't install gnuwin32 as a whole,
> just the glpk part, in order to have something handy and ready to use.
> That's also why sI got the precompiled packages from Synaptic on Linux. As
> far as I know, there's nothing wrong with either. My actual problem is that
> I cannot run the libs: the compiler finds the header and the function
> prototype, but not the actual function, wherever it is; maybe there's some
> dll missing, but copying those from the "bin" directory doesn't work.
Have you remembered to link to GLPK?
The line to call the linker should look look something like this:
gcc -o myprogram myfile1.o myfile2.o -lglpk
The important part is the -lglpk, which tells gcc to link against the glpk 
library.

-- 
Andrew Walbran
website: http://user.interface.org.nz/~andrew/
blog: http://qwandor.wordpress.com/

Attachment: pgpvZUPBS_Tvm.pgp
Description: PGP signature


reply via email to

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