keep getting "undefined reference to" linker error
H.S.
hs.samix@gmail.com
Fri Aug 10 04:58:00 GMT 2007
Brian Dessent wrote:
> "H.S." wrote:
>
>> gcc -g -Wall -c -ansi -Wno-deprecated -I./
>> -I/home/hs/tmp/taucs/build/linux -I/home/hs/tmp/taucs/src spmat.cc -o
>> spmat.o
>
> Just switching to gcc isn't sufficient, it still has the .cc extension.
Oh crap! I changed the file extension, but forgot to change the rule in
Makefile from
%.o : %.cc
to
%.o : %.c
Sorry, my bad.
I will try this now,
thanks,
->HS
> Brian
>
More information about the Gcc-help
mailing list