Re: keep getting "undefined reference to" linker error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux