View Single Post
Old Nov 26th, 2006, 11:32 AM   #1
sackarias
Programmer
 
sackarias's Avatar
 
Join Date: Jan 2006
Posts: 58
Rep Power: 3 sackarias is on a distinguished road
sparc error help

Working in Unix. Sparc architecture.

I'm using a makefile to compile 4 seperate files, main.m, eval_poly.m, print_A.m, read_A.m.

I'm completely lost as to what the following error is saying. My print_A was taken from a previous project in which case worked perfectly. It's passed an array and it's size, loops through printing out, it's working code.

If any other information is needed or if code from certain files is needed I will post it. If it's at all possible could someone give me an idea of what I should look for to right this error? I'd prefer figuring it out myself, I just need to be set free in the correct direction : )

Thanks a lot!

61 ->make
/usr/ccs/bin/m4 main.m > main.s
/usr/ccs/bin/m4 eval_poly.m > eval_poly.s
gcc -c main.s
gcc -c eval_poly.s
gcc     main.o eval_poly.o read_A.o print_A.o -o eval_poly
Undefined                       first referenced
 symbol                             in file
print_A                             main.o
ld: fatal: Symbol referencing errors. No output written to eval_poly
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `eval_poly'
sackarias is offline   Reply With Quote