[DCC致命错误]:F2051单元ApFileIO是用不同版本的***编译的。{ApCollections} TLinkList< uPublic.TApObject> [英] [DCC Fatal Error]: F2051 Unit ApFileIO was compiled with a different version of ***.{ApCollections}TLinkList<uPublic.TApObject>

查看:73
本文介绍了[DCC致命错误]:F2051单元ApFileIO是用不同版本的***编译的。{ApCollections} TLinkList< uPublic.TApObject>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到类似的问题,并且已经对其进行了检查,但是我没有解决任何问题。
我掌握了所有消息源,错误大约是我自己写的两个单元,它们都在我应用的主目录中。自从我使用编写类的模板方法以来,我一直遇到问题。
这是我的应用程序的情况:我编写了一个用于实现任何对象的链接列表的新单元,因此编写了 TLinkList< T> = class 效果很好。自从我写这堂课以来,我遇到了这个问题。它在正常情况下无法编译,我要做的是注释 ApFileIO 单元中的某些代码并编译程序,然后再次取消注释代码!
我已经厌倦了对代码进行注释和取消注释的操作,因此我想知道是否仍然可以解决此错误。

I have seen similar questions and I've examined them but I didn't solve any problem. I have all the sources and the error is about two units I've written myself and they are both in the main directory of my app. I've been having the problem since I used the template method of writing classes. Here's the situation with my app: I wrote a new unit for implementing link list for any kind of object so I wrote TLinkList<T> = class which works perfectly fine. Since the time I wrote this class, I'm having this problem. It doesn't compile in normal situations and what I have to do is to comment some of the code in ApFileIO unit and compile the program, and then uncomment the code again! I'm tired of commenting and uncommenting my codes, so I was wondering if there is anyway to fix this error. Thx in advance.

推荐答案

信不信由你,不使用内联函数。
我删除了单元 *** inline 指令(在问题主题中已提到)和 ApCollections 。这样就解决了问题。
谢谢大家的帮助。

Believe it or not, the problem is solved by not using inline functions. I removed inline directives of unit *** (which is mentioned in the question subject) and ApCollections. This solved the problem. Thank you everybody for helping.

这篇关于[DCC致命错误]:F2051单元ApFileIO是用不同版本的***编译的。{ApCollections} TLinkList&lt; uPublic.TApObject&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆