修改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定义中有长度限制,估计自己替换成的字符串太长了 于是替换短一点的,问题解决了!

相关文章:

  • 2022-01-20
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2018-09-28
  • 2022-12-23
  • 2021-12-01
  • 2021-08-17
  • 2021-09-16
  • 2021-05-17
相关资源
相似解决方案