This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
8168的demos里如何加c++文件生成的 .so的动态链接库
怎么把c++文件编译进link呢?我写了个MAKEFILE.DEPEND,类似:test.o:test.cpp总是会被自动清空。我已经将common_header_a8.mk里CC=$(CODEGEN_PATH_A8)/bin/arm-none-linux-gnueabi-gcc添加 了 -lstdc++
MAKEFILE.DEPEND是自动生成的,不需要你自己写的。你即便自己写了,也会被删掉。替换为自动生成的文件。
恩,看了一下他的common_header_a8.mk文件,FILES=$(subst ./, , $(foreach dir,.,$(wildcard $(dir)/*.c)) ) 自动生成,谢谢回帖!