Makefile modification to support c++11

前端 未结 3 1369
后悔当初
后悔当初 2021-01-12 13:41

I am able to compile a single file using gcc with -std=c++0x option. But I can\'t do this through makefile. Here are the set of flags in my makefile (which after make compla

3条回答
  •  滥情空心
    2021-01-12 14:30

    You can keep it in multiple lines, but you probably want to append, not to assign:

    # e.g.
    CFLAGS  += -O3
    CFLAGS  += -std=c++0x
    CFLAGS  += -pg -D_DEBUG -g -c -Wall
    

提交回复
热议问题