help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] compile error in examples of glpk-4.2 source


From: Marcos Roberto Silva
Subject: [Help-glpk] compile error in examples of glpk-4.2 source
Date: Thu, 27 Nov 2003 14:51:13 -0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Hi,
I am trying to install de GLPK-4.2, and when I compile de examples, the error output is:

address@hidden glpk-4.2]$ make
Making all in include
make[1]: Entering directory `/home/marcos/glpk-4.2/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/marcos/glpk-4.2/include'
Making all in src
make[1]: Entering directory `/home/marcos/glpk-4.2/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/marcos/glpk-4.2/src'
Making all in examples
make[1]: Entering directory `/home/marcos/glpk-4.2/examples'
gcc  -g -O2  -o glpsol  glpsol.o ../src/libglpk.a
../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_power':
/home/marcos/glpk-4.2/src/glpmpl3.c:164: undefined reference to `log'
/home/marcos/glpk-4.2/src/glpmpl3.c:164: undefined reference to `log'
/home/marcos/glpk-4.2/src/glpmpl3.c:164: undefined reference to `log'
/home/marcos/glpk-4.2/src/glpmpl3.c:164: undefined reference to `log'
/home/marcos/glpk-4.2/src/glpmpl3.c:170: undefined reference to `log'
../src/libglpk.a(glpmpl3.o):/home/marcos/glpk-4.2/src/glpmpl3.c:170: more undefined references to `log' follow
../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_power':
/home/marcos/glpk-4.2/src/glpmpl3.c:173: undefined reference to `pow'
../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_exp':
/home/marcos/glpk-4.2/src/glpmpl3.c:183: undefined reference to `log'
/home/marcos/glpk-4.2/src/glpmpl3.c:185: undefined reference to `exp'
../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_log':
/home/marcos/glpk-4.2/src/glpmpl3.c:196: undefined reference to `log'
../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_log10':
/home/marcos/glpk-4.2/src/glpmpl3.c:207: undefined reference to `log10'
collect2: ld returned 1 exit status
make[1]: *** [glpsol] Error 1
make[1]: Leaving directory `/home/marcos/glpk-4.2/examples'
make: *** [all-recursive] Error 1

What's wrong? How can I fix this? I am with all standard includes in my pc, including math.h.
The libglpk.a was created with no problems.

Thanks,

Marcos Roberto Silva
Sao Paulo - Brazil






reply via email to

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