问题描述
几天以来,发生了一些奇怪的事情.
since some days, something weird happened.
问题 :
Problem:
我们的情况:我和我的同事正在同一个项目上发展.我们使用JEDI来交换我们的资源并跟踪更改.
Our situation: me and my collegueare developping on the same project. We use JEDI to exchange our sources and to keep track of changes.
最后,我正在下载他更改过的资源.一切顺利,我准备继续.
LAst, I was downloading his changed sources. Everything went well and I was ready to go on.
我刷新了所有文件,并尝试在计算机上编译,生成和运行新的源代码.
I refreshed all my files and tried to compile, build and run the new sources on my computer.
F2051 Unit System.SysUtils was compiled with a different version of "".GetMappedFileName
我检查了我们的delphi标准库版本,以及已安装的其他组件的版本,所有内容都匹配.然后我去网上购物.我发现了一些类似的问题,但没有一种可能的解决方案对我有用...
I checked our versions of delphi standard lib's and also the versions of our other components installed and everything matches.Then I went on internet-tip-shopping. I found some similar problems, but non of the possible solutions worked for me...
这是我尝试过的一些事情:
This are some things I tried yet:
- 仅使用sysUtils的提示音功能设置一个简单的简单项目
- 修理西雅图的德尔福
- 看着我的图书馆路径,浏览路径...
- 清除了我项目的dcu
我还尝试了"dir/s"搜索来查找不同(错误的)System.SysUtils版本.*
I also tried a "dir /s" search to find different (wrong?) versions of System.SysUtils.*
找到了.PAS
- 每个已安装的版本1、14、15、16、17(14、15或我的道路上有16个
- C:\ ProgramData {0DE47792-19BD-4AF4-B9CF-6378FBA44825} \ sourcefileswin32 \ E1F130EB \ D08CA8BE
- C:\ Users \ All
用户{0DE47792-19BD-4AF4-B9CF-6378FBA44825} \ sourcefileswin32 \ E1F130EB \ D08CA8BE
找到了.DCU
- 对于所有版本(14、15、16、17)
- 对于每个导出系统(android,ios,..)
- 也在ProgramData中
- 也在所有用户中
您可以在本文的末尾找到我的图书馆和浏览路径.
You an find my library and browsing path at the end of this post.
我曾经尝试解决此问题的一些互联网站点:
Some of the internet sites I used to try to solve this:
- 为什么是我的单元与不同版本一起编译"我自己的文件?
- F2051:单元%s已编译使用%s的其他版本
- https://translate.google.com/translate?hl=zh-CN&sl=auto&tl=en&u=http%3A%2F%2Fdelphi4arab.net%2Fforum%2Fshowthread.php%3Fmode%3Dlinear%26tid%3D4700%26pid%3D24332
- [DCC致命错误]:F2051单元ApFileIO是使用不同版本的***编译的.{ApCollections} TLinkList< uPublic.TApObject>
有没有人有想法或线索可以摆脱这个问题.因为自从发生这种情况以来,我无法继续进行任何项目.
Does anyone have an idea or a clue to get out off this. Cause I can't go on with any of my projects since this happened.
这是我的Win32库路径:
This is my Library path for Win32:
$(BDS)\Imports;
$(BDS)\LIB;
$(BDS)\Bin;
$(BDSCOMMONDIR)\Bpl;
$(BDSCOMMONDIR)\Dcp;
$(BDS)\include;
C:\Program Files (x86)\Neos Eureka S.r.l\EurekaLog 7\Lib\Common\;
C:\Program Files (x86)\Neos Eureka S.r.l\EurekaLog 7\Lib\Win32\Release\Studio23\;
C:\Program Files (x86)\Neos Eureka S.r.l\EurekaLog 7\Source\Extras;
$(BDS)\RBuilder\Lib\Win32;
C:\sources\Utilities;
C:\Program Files (x86)\Embarcadero\synaps\source\lib;
C:\Program Files (x86)\Embarcadero\Components;
C:\Program Files (x86)\Embarcadero\EmbeddedWB\Source;
C:\Program Files (x86)\Embarcadero\Ruler;
C:\Program Files (x86)\Embarcadero\paxCompilerXE10\package;
C:\Program Files (x86)\Embarcadero\Studio\17.0\source\rtl\win;
C:\Program Files (x86)\Devart\UniDAC for RAD Studio 10\Lib\Win32;
c:\program files (x86)\embarcadero\tms pack for firemonkey\win32;
C:\Program Files (x86)\Embarcadero\fgx_XE8\Library;$(DXVCL)\Library\RS23;
C:\Program Files (x86)\Embarcadero\RTC;
C:\Program Files (x86)\Embarcadero\Studio\17.0\lib\win32\release
这是我的浏览路径:
This is my browsing path:
$(BDS)\source\rtl;
$(BDS)\SOURCE\RTL\SYS;
$(BDS)\source\rtl\win;
$(BDS)\source\rtl\common;
$(BDS)\SOURCE\VCL;
$(BDS)\SOURCE\XML;
$(BDS)\source\ToolsAPI;
$(BDS)\SOURCE\PROPERTY EDITORS;
$(BDS)\source\Internet;
$(BDS)\SOURCE\VCL\AppAnalytics;
$(BDS)\SOURCE\IBX;
$(BDS)\source\soap;
$(BDS)\source\Indy10\Core;
$(BDS)\source\Indy10\System;
$(BDS)\source\Indy10\Protocols;
$(BDS)\source\fmx;
$(BDS)\source\databinding\components;
$(BDS)\source\databinding\engine;
$(BDS)\source\databinding\graph;
$(BDS)\source\data;
$(BDS)\source\data\ado;
$(BDS)\source\data\bde;
$(BDS)\source\data\cloud;
$(BDS)\source\data\datasnap;
$(BDS)\source\data\dbx;
$(BDS)\source\data\dsnap;
$(BDS)\source\data\Test;
$(BDS)\source\data\vclctrls;
$(BDS)\source\data\datasnap\connectors;
$(BDS)\source\data\datasnap\proxygen;
$(BDS)\source\DataExplorer;
$(BDS)\source\DUnit\Contrib\DUnitWizard\Source\Common;
$(BDS)\source\DUnit\Contrib\DUnitWizard\Source\Common\dunit;
$(BDS)\source\DUnit\Contrib\DUnitWizard\Source\DelphiExperts\Common;
$(BDS)\source\DUnit\Contrib\DUnitWizard\Source\DelphiExperts\DUnitProject;
$(BDS)\source\DUnit\Contrib\DUnitWizard\Source\DelphiExperts\DUnitProject\dunit;
$(BDS)\source\DUnit\src;
$(BDS)\source\DUnit\tests;
$(BDS)\source\Experts;
$(BDS)\source\indy\abstraction;
$(BDS)\source\indy\implementation;
$(BDS)\source\indyimpl;
$(BDS)\source\LiveTile;
$(BDS)\source\Property Editors\Indy10;
$(BDS)\source\soap\wsdlimporter;
$(BDS)\source\Visualizers;
$(BDS)\source\xtab;
$(BDS)\source\DUnit\Contrib\XMLReporting;
$(BDS)\source\DUnit\Contrib\XPGen;
$(BDS)\source\data\rest;
$(BDS)\source\data\firedac;
$(BDS)\source\tethering;
$(BDS)\source\DUnitX;
$(BDS)\source\data\ems;
$(BDS)\source\rtl\net;
$(BDS)\source\FlatBox2D;
$(BDS)\OCX\Servers;
C:\Program Files (x86)\Neos Eureka S.r.l\EurekaLog 7\Source\;
$(DXVCL)\ExpressCore Library\Sources;
$(DXVCL)\XP Theme Manager\Sources;
$(DXVCL)\ExpressGDI+ Library\Sources;
$(DXVCL)\ExpressCommon Library\Sources;
$(DXVCL)\ExpressLibrary\Sources;
$(DXVCL)\ExpressPageControl\Sources;
$(DXVCL)\ExpressDataController\Sources;
$(DXVCL)\ExpressEditors Library\Sources;
$(DXVCL)\ExpressWizard Control\Sources;
$(DXVCL)\ExpressBars\Sources;
$(DXVCL)\ExpressDocking Library\Sources;
$(DXVCL)\ExpressLayout Control\Sources;
$(DXVCL)\ExpressSpreadSheet\Sources;
$(DXVCL)\ExpressExport Library\Sources;
$(DXVCL)\ExpressQuantumTreeList\Sources;
$(DXVCL)\ExpressQuantumGrid\Sources;
$(DXVCL)\ExpressVerticalGrid\Sources;
$(DXVCL)\ExpressMemData\Sources;
$(DXVCL)\ExpressSpellChecker\Sources;
$(DXVCL)\ExpressTile Control\Sources;
$(DXVCL)\ExpressNavBar\Sources;
$(DXVCL)\ExpressSkins Library\Sources;
$(DXVCL)\ExpressPrinting System\Sources;
$(DXVCL)\ExpressPivotGrid\Sources;
$(DXVCL)\ExpressDBTree Suite\Sources;
$(DXVCL)\ExpressOrgChart\Sources;
$(DXVCL)\ExpressFlowChart\Sources;
$(DXVCL)\ExpressMap Control\Sources;
$(DXVCL)\ExpressScheduler\Sources;
$(DXVCL)\ExpressRichEdit Control\Sources;
$(DXVCL)\ExpressGauge Control\Sources
推荐答案
问题已解决,库路径中有一个实例对此问题负责.
Problem solved, There was one instance in the library path that was responsible for the problem.
我禁用了"C:\ Program Files(x86)\ Embarcadero \ Studio \ 17.0 \ source \ rtl \ win;"来自图书馆,现在一切似乎都可以正常工作.
I disabled "C:\Program Files (x86)\Embarcadero\Studio\17.0\source\rtl\win;" from the library and all seems to work now.
我现在的工作是查看为什么此文件位于我的前辈中的我的库中,并尝试查看该目录中是否有任何奇怪的" pas/dcu文件,因此在路径中需要使用该文件.但这就是我的工作,感谢所有帮助我提供一些线索以解决问题的人.
My job now is to look why this file was in my library from my predecessor and try to look if there are any "strange" pas/dcu files in that directory so it should be needed in the path.But that is now my job, Thx to all who helped me with sending some clues to get it solved.
这篇关于Delphi Seattle,编译错误:F2051单元System.SysUtils使用不同版本的“."编译.GetMappedFileName的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!