控制台应用程序中的 TClientSocket 导致链接器错误
我有一个必须制作的控制台应用程序,我想在其中使用 TClientSocket
/TServerSocket
。
问题是,当我尝试编译它时,我收到有关 TBaseSocket
和 TCustomSocket
类的构造函数和析构函数的链接器错误 (TClientSocket< /code> 我认为继承自那两个)。
链接器错误是这样的
[Linker error] undefined reference to ~TCustomSocket
事情是,在 VCL 表单项目中它编译得很好,所以我想我没有包含表单项目默认包含的一些库路径。
因此,如果有人可以帮助我,我将不胜感激。
预先感谢并抱歉我的英语。
I have a console application that i got to make and i would like to use TClientSocket
/TServerSocket
in it.
The problem is that when i am trying to compile it, i am getting a linker error regarding the constructors and the destructors of the TBaseSocket
and TCustomSocket
classes (TClientSocket
inherits from those two i think).
The linker error is something like this
[Linker error] undefined reference to ~TCustomSocket
The thing is that in a VCL Form project it compiles just fine, so i guess i am not including some libs paths that the form projects includes by default.
So if anyone could help me i would be grateful.
Thanks in advance and sorry for my english.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Builder XE 中也遇到了同样的问题。将“inet.bpi”添加到您的“需求”列表中,它应该链接。
I had the same problem with Builder XE. Add 'inet.bpi' to your Requires list and it should link.