c++ - 这些错误是什么意思? ISOC++禁止分配数组

标签 c++ compiler-errors libraries rhel

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

谢谢!

制作-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:错误:必须使用大括号括起来的初始化程序来初始化数组

最佳答案

也许url => here会帮助您。

关于c++ - 这些错误是什么意思? ISOC++禁止分配数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2950440/

相关文章:

java - 使用各种资源构建可运行的 .jar 或 exe - 如何?

c - 带有新库的 schoolproject 额外功能

c++ - C++ 中的英特尔 MKL 稀疏 QR 求解返回未初始化错误

lambda 的 C++ 模板类型推断

c++ - 关闭时出现访问冲突错误

debugging - “Generics add stability to your code by making more of your bugs detectable at compile time.”-用外行的术语解释吗?

c++ - 编译器错误 C3493 : 'func' cannot be implicitly captured because no default capture mode has been specified

c++ - 使用 "const char*"和 "char*"参数连接两个第三方模块

c++ - 如何为 C++ 函数定义属性别名?

linux - 适用于所有 Linux 发行版的程序包