Cport控件编译错误,急

lshon 2002-03-05 04:23:27
我在安装完CPORT2.63版后,只在Form上放了一个ComPort1,没写任何代码,
直接编译后Cport.hpp出现错误:

[C++ Error] CPort.hpp(686): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(677): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(704): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int,int)'
[C++ Error] CPort.hpp(676): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int,int)'

哪位给指条明路,谢谢。
...全文
126 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
sdjifeng 2002-07-24
  • 打赏
  • 举报
回复
我遇到了和你一样的问题,请教你应该如何解决。
lshon 2002-03-05
  • 打赏
  • 举报
回复
如果重复申明了,该怎么办,
还请指教
caoguangxin 2002-03-05
  • 打赏
  • 举报
回复
你的控件有问题,检查一下头文件里是不是对EComPort::EcomPort重复申明了。

13,871

社区成员

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

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