Borland c++ build 6编译出错Could not find a match for OpenArray<TVarRec>::OpenArray
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Borland c++ build 6编译出错Could not find a match for OpenArray<TVarRec>::OpenArray相关的知识,希望对你有一定的参考价值。
今天编译一个c++程序时,出现如下错误,请问是什么问题导致的?怎么样解决?
[C++ Error] Unit89.cpp(55): E2285 Could not find a match for 'OpenArray<TVarRec>::OpenArray(AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString)'
[C++ Error] Unit89.cpp(55): E2285 Could not find a match for 'OpenArrayCount<TVarRec>::OpenArrayCount(AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString,AnsiString)'
问题已解决,因为bcb里面只定义了最多19个参数的OpenArray方法,如果要用多余19个参数,必须自己手动重新定义,找到sysopen.h,在里面添加就行了!~
以上是关于Borland c++ build 6编译出错Could not find a match for OpenArray<TVarRec>::OpenArray的主要内容,如果未能解决你的问题,请参考以下文章
使用 Coverity 使用 devenv 编译 C++ 项目时出错。 (cov-build.exe)
Borland C++ Builder 6 上的奇怪链接器错误