Linking problem in make file.

Reply

Join Date: Aug 2008
Posts: 5
Reputation: kerenLinux is an unknown quantity at this point 
Solved Threads: 0
kerenLinux kerenLinux is offline Offline
Newbie Poster

Linking problem in make file.

 
0
  #1
Aug 27th, 2008
Hi,
After calling make using the makefile bellow i receive .o and .p files. but in the linking part i receive errors : undefined reference to....

thhe makefile:
CC=gcc -c
LD=g++
SRCS= a.cpp b.cpp tmp/c.cpp tmp/d.cpp............
OBJ=$(SRCS:.cpp=.o)
INCLI= ...
all: BBB
BBB: $(OBJ)
@echo "Linking...."
$(LD) $(OBJ) -o BBB $(OBJLIBS)
@echo "Linking complete"
%.o : %.cpp
@echo "Compiling: "
@echo $@
$(CC) $(INCLI) -MD -o $@ $<
@cp $*.d $*.P; \
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
rm -f $*.d

Could anyone advise me ?
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 60
Reputation: BillBrown is an unknown quantity at this point 
Solved Threads: 1
BillBrown's Avatar
BillBrown BillBrown is offline Offline
Junior Poster in Training

Re: Linking problem in make file.

 
0
  #2
Sep 22nd, 2008
You may need to contact the application's developer to see if she/he has any ideas regarding how this can be resolved. If you do, be sure to include the distro and version you're using so they have an idea of the file system structure you have in place. Also provide them with the application's version number if there is one.

Bill
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC