make: implicit rule to link c++ project

后端 未结 7 1030
礼貌的吻别
礼貌的吻别 2020-12-31 04:52

I am working my way through a make tutorial. Very simple test projects I am trying to build has only 3 files: ./src/main.cpp ./src/implementation.cpp and

7条回答
  •  失恋的感觉
    2020-12-31 05:22

    If you want to link c++ object files you can specify LINK.o to be LINK.cc at the top

    LINK.o := $(LINK.cc)
    

    You should then see c++ instead of cc in your make output

提交回复
热议问题