Discussion:
error in makefile
(too old to reply)
Vinson Hum
2004-04-08 00:45:35 UTC
Permalink
Hi,
Are you compiling it on skule.ecf? I discovered that it won't work on
skule.ecf... but it works on the other machines. Otherwise... try using make
clean if you haven't.

Vinson Hum
I have added the necessary '-lm' math file link to my make file and i
still
keep getting this error. Could someone tell me what I should do to fix it?
I
have also downloaded the newest board_given as well.
"
ERROR 33 : Unresolved text symbol "log" -- 1st referenced by
board_given.o.
Use linker option -v to see when and which objects, archives and
dsos are loaded.
"
Thanks
This is not an error in board_given.c; it is an error in your Makefile.
Does anyone remember the complaints everyone had about not being able to
use funcitons in <math.h> from lab 1? The reason was that the Makefile
for lab 1 did not specify the correct linker option to link against the
math libraries. For this lab, you are writing the Makefile yourself. In
order to link against the math library, you have to add the correct
option
to the "LFLAGS=" line. You should already know what this is. If you've
forgotten, look through some of the early newsgroup postings that
contain
"math.h" in the subject line.
Alexander
I got the same error too, there seems a error in board_given.c file.
when i 'make' the MakeFile I get an error in board_given.c
"undefined reference to log
undefined reference to floor
undefined reference to pow"
But board_given includes math.h, so why am i getting those errors
Please help
Thanks
Faisal Mohammad
2004-04-08 00:40:15 UTC
Permalink
I have added the necessary '-lm' math file link to my make file and i still
keep getting this error. Could someone tell me what I should do to fix it? I
have also downloaded the newest board_given as well.
"
ERROR 33 : Unresolved text symbol "log" -- 1st referenced by
board_given.o.
Use linker option -v to see when and which objects, archives and
dsos are loaded.
"
Thanks
This is not an error in board_given.c; it is an error in your Makefile.
Does anyone remember the complaints everyone had about not being able to
use funcitons in <math.h> from lab 1? The reason was that the Makefile
for lab 1 did not specify the correct linker option to link against the
math libraries. For this lab, you are writing the Makefile yourself. In
order to link against the math library, you have to add the correct option
to the "LFLAGS=" line. You should already know what this is. If you've
forgotten, look through some of the early newsgroup postings that contain
"math.h" in the subject line.
Alexander
I got the same error too, there seems a error in board_given.c file.
when i 'make' the MakeFile I get an error in board_given.c
"undefined reference to log
undefined reference to floor
undefined reference to pow"
But board_given includes math.h, so why am i getting those errors
Please help
Thanks
Alexander Smith
2004-04-08 02:23:25 UTC
Permalink
The error message you get does not look like it came from gcc on one of
the p##.ecf machines. If you are using a different compiler, then the
command to link against the math library if very likely different. If you
are not working on one of the p##.ecf machines, and you are not using gcc,
then I cannot help you. skule.ecf is not one of the p##.ecf machines.
Neither is remote.ecf. Neither are the ugsparcs. Make absolutely sure you
are logged into a one of the p##.ecf machines, make sure your Makefile is
using "gcc" as the compiler, and try again.

Alexander
Post by Faisal Mohammad
I have added the necessary '-lm' math file link to my make file and i still
keep getting this error. Could someone tell me what I should do to fix it? I
have also downloaded the newest board_given as well.
"
ERROR 33 : Unresolved text symbol "log" -- 1st referenced by
board_given.o.
Use linker option -v to see when and which objects, archives and
dsos are loaded.
"
Thanks
This is not an error in board_given.c; it is an error in your Makefile.
Does anyone remember the complaints everyone had about not being able to
use funcitons in <math.h> from lab 1? The reason was that the Makefile
for lab 1 did not specify the correct linker option to link against the
math libraries. For this lab, you are writing the Makefile yourself. In
order to link against the math library, you have to add the correct option
to the "LFLAGS=" line. You should already know what this is. If you've
forgotten, look through some of the early newsgroup postings that contain
"math.h" in the subject line.
Alexander
I got the same error too, there seems a error in board_given.c file.
when i 'make' the MakeFile I get an error in board_given.c
"undefined reference to log
undefined reference to floor
undefined reference to pow"
But board_given includes math.h, so why am i getting those errors
Please help
Thanks
Loading...