sinwing 发表于 2006-12-13 21:08:59

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

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

sinwing 发表于 2006-12-13 21:22:05

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

sinwing 发表于 2006-12-13 21:24:02

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

mozilla 发表于 2006-12-23 10:36:34

CFLAGS里把-fwritable-strings 去掉
页: [1]
查看完整版本: 编译时遇到了这样的错误信息?请问是什么问题?