What's meaning?????

dycdyc123 2001-07-26 08:56:52
When Compiling;Come out the Error:
[C++ Error] CPort.hpp(659): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(650): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(677): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int,int)'
[C++ Error] CPort.hpp(649): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int,int)'
...全文
101 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
dycdyc123 2001-07-28
  • 打赏
  • 举报
回复
Give!
Wingsun 2001-07-26
  • 打赏
  • 举报
回复
不知道你如何定义的,建议你这样写你的头文件:
#ifndef __CPORT_HPP__
#define __CPORT_HPP__
....
....
//类定义



#endif
dycdyc123 2001-07-26
  • 打赏
  • 举报
回复
But It is overload!
__fastcall EComPort(int ACode, int AWinCode);
__fastcall EComPort(int ACode);
/* Exception.CreateRes */ inline __fastcall EComPort(int Ident)/* overload */ : Sysutils::Exception(Ident) { }
/* Exception.CreateResHelp */ inline __fastcall EComPort(int Ident, int AHelpContext)/* overload */: Sysutils::Exception(Ident, AHelpContext) { }



Why???
Please....
Wingsun 2001-07-26
  • 打赏
  • 举报
回复
重复定义呗。
_STLer 2001-07-26
  • 打赏
  • 举报
回复
你的构造函数声明有重复?

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧