-------- Original Message -------- Asunto: Re: Can't compile GRX with linux makefile Fecha: Fri, 02 Nov 2001 11:16:28 +0100 De: Mariano Alvarez Fernandez malfer@teleline.es A: "Cappellini, Tony" Tony_Cappellini@MAXTOR.COM Referencias: 09D1E9BD9C30D311919200A0C9DD5C2C03E08D43@mcaexc01.msj.maxtor.com
"Cappellini, Tony" escribió:
Mariano,
I've fixed the first problem. I had to copy the default font path to multiple locations in the makefile, in order to compile correctly. Makefiles are so strange.
Now- after fixing that problem, I've encountered this one
/usr/src/bs/BUILD/svgalib-1.4.1/src/mouse/ms.c:395: undefined reference to `pow' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libvga.a(i740.o): In function `I740CalcVCLK': /usr/src/bs/BUILD/svgalib-1.4.1/src/i740.c:381: undefined reference to `log' /usr/src/bs/BUILD/svgalib-1.4.1/src/i740.c:381: undefined reference to `log' collect2: ld returned 1 exit status make: *** [../bin/modetest] Error 1
Do you know what this means ?
I'm guessing it's looking for the math library, but I've added the -lm switch to the LDOPT in makedefs.grx, but it didn't help.
Tony
Note that you must add the -lm switch to your project, not to the grx makefile!!!!