这些错误是什么意思? ISOC++禁止数组赋值

发布于 2024-09-04 11:20:53 字数 1595 浏览 0 评论 0原文

我正在尝试在我们的一个系统上为 DBA 编译一些代码...我已经编辑了 makefile 以包含文档中列出的相关库,但我不断收到这些错误...您能辨别出任何明显的问题吗从我的命令行参考列出的错误?

谢谢你!

make -f /u01/app/banner/ban8/TEST3/links/Makefile_tm_linux64_redhat5_ban8.mk

gcc -m64 -D_NOFIXARGPTR -fpic -shared -DTMCILIB_EXPORTS -D_TMUNICODE -I/usr/local/ban_icu -I/usr/local/src/icu/source/i18n/ -I/usr/local/src/icu/source/common/ -I/usr/local/src/icu/source /extra/ustdio/ -I/usr/local/src/icu/source/io -L/usr/lib64 -L/usr/lib -L/usr/local/src/icu/source/data/ -L/usr /local/src/icu/source/data/out/ -L/usr/local/src/icu/source/tools/toolutil/ -L/usr/lib/im/icuconv/ -L/usr/local/lib/ -L。 -licui18n -licudata -licuuc -licu-toolutil -licuio msgfmttm.cpp umsgtm.cpp tmcilib.cpp -o /u01/app/banner/ban8/TEST3/general/exe/libtmciuc.so

umsgtm.cpp: 在函数 'void fixArgPtr(const UChar*, __va_list_tag (*)[1] )':

umsgtm.cpp:158: 错误:必须使用大括号括起来的初始化程序来初始化数组

umsgtm.cpp:194: 错误:ISO C++ 禁止数组赋值

umsgtm.cpp: 在函数 'int32_t tmumsg_vformat(void**, UChar) 中*,int32_t,__va_list_tag *,UErrorCode *)':

umsgtm.cpp:305:错误:无法将参数'2'的'__va_list_tag**'转换为'__va_list_tag()[1]'到'void fixArgPtr(const) UChar,__va_list_tag (*)[1])'

tmcilib.cpp:在函数'int tmprintf(TMBundle *,const UChar *,...)'中:

tmcilib.cpp:743:错误:必须初始化数组使用大括号括起来的初始值设定项

tmcilib.cpp:在函数 'int tmfprintf(TMBundle*, UFILE*, const UChar*, ...)' 中:

tmcilib.cpp:757: 错误:必须使用大括号括起来的初始值设定项来初始化数组

tmcilib.cpp:在函数“int tmsprintf(TMBundle *,UChar *,const UChar *,...)”中:

tmcilib.cpp:808:错误:必须使用大括号括起来的初始值设定项来初始化数组

I'm trying to compile some code on one of our systems for our DBA...I've edited the makefiles to include the pertinent libraries listed in the documentation, but I keep getting these errors... Can you discern any obvious problems from my command lines in reference to the errors listed?

Thank you!

make -f /u01/app/banner/ban8/TEST3/links/Makefile_tm_linux64_redhat5_ban8.mk

gcc -m64 -D_NOFIXARGPTR -fpic -shared -DTMCILIB_EXPORTS -D_TMUNICODE
-I/usr/local/ban_icu -I/usr/local/src/icu/source/i18n/ -I/usr/local/src/icu/source/common/ -I/usr/local/src/icu/source/extra/ustdio/ -I/usr/local/src/icu/source/io -L/usr/lib64 -L/usr/lib -L/usr/local/src/icu/source/data/ -L/usr/local/src/icu/source/data/out/ -L/usr/local/src/icu/source/tools/toolutil/ -L/usr/lib/im/icuconv/ -L/usr/local/lib/ -L. -licui18n -licudata -licuuc -licu-toolutil -licuio
msgfmttm.cpp umsgtm.cpp tmcilib.cpp -o /u01/app/banner/ban8/TEST3/general/exe/libtmciuc.so

umsgtm.cpp: In function ‘void fixArgPtr(const UChar*, __va_list_tag (*)[1])’:

umsgtm.cpp:158: error: array must be initialized with a brace-enclosed initializer

umsgtm.cpp:194: error: ISO C++ forbids assignment of arrays

umsgtm.cpp: In function ‘int32_t tmumsg_vformat(void**, UChar*, int32_t, __va_list_tag*, UErrorCode*)’:

umsgtm.cpp:305: error: cannot convert ‘__va_list_tag**’ to ‘__va_list_tag ()[1]’ for argument ‘2’ to ‘void fixArgPtr(const UChar, __va_list_tag (*)[1])’

tmcilib.cpp: In function ‘int tmprintf(TMBundle*, const UChar*, ...)’:

tmcilib.cpp:743: error: array must be initialized with a brace-enclosed initializer

tmcilib.cpp: In function ‘int tmfprintf(TMBundle*, UFILE*, const UChar*, ...)’:

tmcilib.cpp:757: error: array must be initialized with a brace-enclosed initializer

tmcilib.cpp: In function ‘int tmsprintf(TMBundle*, UChar*, const UChar*, ...)’:

tmcilib.cpp:808: error: array must be initialized with a brace-enclosed initializer

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小…楫夜泊 2024-09-11 11:20:53

也许那个网址 => 此处将为您提供帮助。

Maybe that url => here will help you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文