我在cygwin中编译tinyos的程序出现如下错误,不知道应该怎么解决。
$ make null
mkdir -p build/null
compiling BlinkAppC to a null binary
ncc -o build/null/main.exe -Os -finline-limit=100000 -Wall -Wshadow -fnesc-gcc=gcc -Wnesc-all -target=null -fnesc-cfile=build/null/app.c -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"fteworld\" -DIDENT_HOSTNAME=\"fteworld-PC\" -DIDENT_USERHASH=0x5abe572eL -DIDENT_TIMESTAMP=0x523d8ddaL -DIDENT_UIDHASH=0xcadb3341L BlinkAppC.nc -lm
gcc: 错误:unrecognized command line option ‘-_fnesc-gcc=gcc’
gcc: 错误:unrecognized command line option ‘-_fnesc-include=nesc_nx’
gcc: 错误:unrecognized command line option ‘-_fnesc-include=tos’
gcc: 错误:unrecognized command line option ‘-_fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask’
gcc: 错误:unrecognized command line option ‘-_fnesc-gcc=gcc’
gcc: 错误:unrecognized command line option ‘-_Wnesc-all’
gcc: 错误:unrecognized command line option ‘-_fnesc-cfile=build/null/app.c’
gcc: 错误:unrecognized command line option ‘-_fnesc-target=pc’
gcc: 错误:unrecognized command line option ‘-_fnesc-no-debug’
/opt/tinyos-2_1_2/support/make/null/null.rules:70: recipe for target `exe0' failed
make: *** [exe0] Error 1
你的这个问题解决了吗?
我也遇到了这个问题,该怎么解决?
降低gcc版本,我的本来是4.6,改成了4.4(4.5及以下好像就行)就不报gcc错误了