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: pgp53WFBSj4Sx.pgp
Description: PGP signature

_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to