qt/moc_optionsdialog.cpp:129:1: error: initializer-string for array of chars is too long

修改bitcoin成自己的币,将对应的bitcoin相关的词换成了自己要改的出现了如下错误:

qt/moc_optionsdialog.cpp:129:1: error: initializer-string for array of chars is too long [-fpermissive]
 };
 ^
Makefile:7641: recipe for target 'qt/qt_libhongchangcoinqt_a-moc_optionsdialog.o' failed
make[2]: *** [qt/qt_libhongchangcoinqt_a-moc_optionsdialog.o] Error 1
make[2]: Leaving directory '/home/parallels/Documents/newcoin/hongchang/src'
Makefile:9761: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/parallels/Documents/newcoin/hongchang/src'
Makefile:757: recipe for target 'all-recursive' failed

make: *** [all-recursive] Error 1

然后打开src/qt/moc_optionsdialog.cpp文件查看源码,看到了如下相关的代码:


qt/moc_optionsdialog.cpp:129:1: error: initializer-string for array of chars is too long

struct定义中有长度限制,估计自己替换成的字符串太长了 于是替换短一点的,问题解决了!