Page 1 of 1

undefined reference

Posted: Sat Jun 11, 2011 4:28 pm
by axiomfinity
I run the make script to compile and link the kernel and i am getting an undefined reference
from ld.

gcc -Wall -g -v -c -static -o avocado.o kernel.c -lstdc++ -L/usr/lib -I/usr/lib -ltommath
ld -T link.ld -o avocadoos start.o avocado.o

Re: undefined reference

Posted: Sat Jun 11, 2011 5:44 pm
by piranha
Um. Thats possibly the most useless description of a problem I've come across, besides "It doesn't work". I'm not even going to look at the commands. Perhaps providing code, and the error message would be a good plan?

Oh, and linking to libraries? Bad plan...

EDIT: Actually, you're linking to those libraries (or trying to) in the gcc command that doesn't do any linking...

-JL

Re: undefined reference

Posted: Sat Jun 11, 2011 5:54 pm
by Brynet-Inc
EDIT: Removed 2015: Imageshack replaced all links with spam.