我正在使用32位的embarcadero C++ XE8。当我包含以下文件时:
#include<ATLBASE.h>
#include<UTILCLS.h>
#include<opcda.h>
#include<DataCallBackSink.cpp>我得到以下错误:
[bcc32 Fatal Error] atlbase.h(5): F1003 Error directive: You must copy ATL files from an earlier version of BDS [$(BDS)\include\atl\*.*] to use ATL
当我转到该文件时,我将看到以下文本:
// CBuilderXE does not include ATL files as we were unable to secure a license
// For C++ ActiveX development you can now use the DAX (Delphi ActiveX) Framework
// Alternately, you may copy the ATL files from an earlier version of C++Builder
// $(BDS)\include\atl\*.* ---> $(BDS)\include\windows\sdk\atl
#error You must copy ATL files from an earlier version of BDS [$(BDS)\include\atl\*.*] to use ATL我使用名为include\ATL*file name*的映射将这些文件直接添加到我的程序中
我想,当我将这些文件复制到\windows\sdk\atl目录中时,它会起作用,但它不起作用
那么以前有人遇到过这个错误吗?如果你解决了它,你是如何解决它的?
发布于 2015-11-09 20:09:43
除了包含文件之外,您还需要复制一个.lib文件。你可以从here下载。
如果问题仍然存在,请确保项目选项中的搜索路径正确。
https://stackoverflow.com/questions/32602868
复制相似问题