No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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) … |
|
Hello. I have a linking error when using 'static const int'; My code 1.class A 2.{ 3. static const int b= 5; 4.}; 5. const int A::b; The code is compile, but i receive a linking error: multiple definitions of A::b. if I remove the definition of b outside the … |
|
Hi, I have a complex project (100 source files) and I have a make file from the format SRCS= a.cpp b.cpp ..... %.o : %.c gcc -c -MD -o $@ $< @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ … |