[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-glpk] Re: problem on compiling glpk 4.2 in Debian and Red Hat
From: |
Andrew Makhorin |
Subject: |
[Bug-glpk] Re: problem on compiling glpk 4.2 in Debian and Red Hat |
Date: |
Fri, 14 Nov 2003 22:10:04 +0300 |
Thank you for your bug report.
To avoid the bug please use the command:
make LDFLAGS=-lm ...
The bug appears because the standard math library libm is not specified
in Makefile. (Interesting to note that on testing glpk 4.2 under Debian
GNU/Linux 2.2 there were no errors.)
----- Original Message -----
From: Ricardo Camargo <address@hidden>
To: Andrew Makhorin <address@hidden>
Sent: Friday, November 14, 2003 9:09 PM
Subject: Re: [Help-glpk] glpk 4.2 release information
> Can't compile the glpk 4.2 in Debian and in Red Hat, however it is ok at
> that w32 plataform.
> The following message appears:
>
>
> gcc -g -O2 -o glpsol glpsol.o ../src/libglpk.a
> ../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_power':
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:165: undefined reference to
> `log'
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:165: undefined reference to
> `log'
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:165: undefined reference to
> `log'
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:165: undefined reference to
> `log'
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:171: undefined reference to
> `log'
> ../src/libglpk.a(glpmpl3.o):/home/rcamargo/install/glpk-4.2/src/glpmpl3.c:17
> 1: more undefined references to `log' follow
> ../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_power':
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:174: undefined reference to
> `pow'
> ../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_exp':
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:184: undefined reference to
> `log'
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:186: undefined reference to
> `exp'
> ../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_log':
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:197: undefined reference to
> `log'
> ../src/libglpk.a(glpmpl3.o): In function `glp_mpl_fp_log10':
> /home/rcamargo/install/glpk-4.2/src/glpmpl3.c:208: undefined reference to
> `log10'
> collect2: ld returned 1 exit status
> make[1]: *** [glpsol] Error 1
> make[1]: Leaving directory `/home/rcamargo/install/glpk-4.2/examples'
> make: *** [all-recursive] Error 1
>
- [Bug-glpk] Re: problem on compiling glpk 4.2 in Debian and Red Hat,
Andrew Makhorin <=