Hi, Andrew!
Hi, all!
Very dummy question: how to compile and link the example program (glpk.pdf, ss. 
15,16) in Windows?
Command 

C:\xrcs>E:\Dev-Cpp\bin\gcc -IC:\xrcs\glpk-4.44\include -c sample.c

done OK, file sample.o appeared. But command

C:\xrcs>E:\Dev-Cpp\bin\gcc -LC:\xrcs\glpk-4.44 sample.o -lglpk -lm

gives an error

E:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot 
find -lglpk
collect2: ld returned 1 exit status

What's wrong?

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

Reply via email to