0

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 ?

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by BillBrown
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.