打印

编译时遇到了这样的错误信息?请问是什么问题?

编译时遇到了这样的错误信息?请问是什么问题?

cc1plus: error: unrecognized command line option "-fwritable-strings"

TOP

cc1plus: error: unrecognized command line option "-fwritable-strings"
在国外网站看到这个,不过还是不太懂,不知应该怎么修改
This option (-fwritable-strings) used to be part of TK_CFLAGS, but as we
noticed it became deprecated in newer gcc versions, it was finally removed
in OMNeT++ 3.2. With 3.1, you can manually remove it by putting

TK_CFLAGS=

into configure.user.

Hope this helps,
Andras

TOP

那个makefile的源代码为:
CFLAGS  = -g -Wall -Wshadow -fwritable-strings $(INCPATH) $(DEFINES) $(HOST) -DCHANGED
LDFLAGS =
我把CFLAGS改成TK_CFLAGS或者在下面加上TK_CFLAGS = 问题还是解决不了

TOP

CFLAGS里把-fwritable-strings 去掉

TOP