我正在尝试在我的mORMot项目中使用SynCrypto.pas ( Synopse ORM/SOA/MVC框架的一部分)来解密mORMot-128流。在以下代码中,我的项目在SynFPCTypInfo中编译时出现错误:
PFPCInterfaceData = TypInfo.PInterfaceData;
PFPCVmtMethodParam = TypInfo.PVmtMethodParam;
PFPCIntfMethodTable = TypInfo.PIntfMethodTable;
PFPCIntfMethodEntry = TypInfo.PIntfMethodEntry;
SynFPCTypInfo.pas(91,31) Error: Identifier not found "PInterfaceData"
SynFPCTypInfo.pas(91,45) Error: Error in type definition
SynFPCTypInfo.pas(92,32) Error: Identifier not found "PVmtMethodParam"
SynFPCTypInfo.pas(92,47) Error: Error in type definition
SynFPCTypInfo.pas(93,33) Error: Identifier not found "PIntfMethodTable"
SynFPCTypInfo.pas(93,49) Error: Error in type definition
SynFPCTypInfo.pas(94,33) Error: Identifier not found "PIntfMethodEntry"
SynFPCTypInfo.pas(94,49) Error: Error in type definition我认为它与Delphi的TypInfo模块不兼容。我怎么才能修复它?
发布于 2020-07-05 22:59:33
所以..。我建议您安装新的pascal:https://github.com/newpascal/newpascal/releases/tag/np-v1.0.56,下载压缩包并将其解压缩到某个文件夹中,例如(D:\ lazarus \ newpascal),然后根据mORMot站点配置路径:为了正确进行FPC编译,请确保您的项目具有以下设置:
其他单元文件(-Fu):D:\lazarus\newpascal\ccr\mORMot;D:\lazarus\newpascal\ccr\mORMot\SQLite3;D:\lazarus\newpascal\ccr\mORMot\SQLite3\DDD\infra\
包含文件(-Fi):$(ProjOutDir);D:\lazarus\newpascal\ccr\mORMot;D:\lazarus\newpascal\ccr\mORMot\SQLite3\
库(-fFl):D:\lazarus\newpascal\ccr\mORMot\static$(TargetCPU)-$(TargetOS)\
site: https: //synopse.info/files/html/Synopse%20mORMot%20Framework%20SAD%201.18.html#TITL_113,,那么你至少可以知道如何测试你的应用了。
https://stackoverflow.com/questions/61828785
复制相似问题