C++Builder keeps saying it can't find .LIB when build starts then tries to link with it – but the component was uninstalled?

huangapple go评论58阅读模式
英文:

C++Builder keeps saying it can't find .LIB when build starts then tries to link with it - but the component was uninstalled?

问题

我试用了 Advanced Data ExportAdvanced Data Import 的试用版,用于 RAD Studio VCL,来自第三方。我遇到了问题,就像现在遇到的这个问题一样,因为他们没有提供 .lib 文件。

我决定卸载它,在卸载导出部分时,Norton反病毒软件阻止了删除Embarcadero程序文件夹中的一些文件。导入部分的卸载顺利进行。在卸载导出部分后,需要重新启动,所以我手动重启了计算机,然后检查了Embarcadero程序文件夹,被阻止删除的那些文件已经消失了。

现在一切都已卸载,我在我的 .hpp.cpp 文件中找不到任何痕迹,它也不显示在包中,但每次尝试构建时都会弹出一个提示:

> 无法找到静态库:QImport3RT.lib

然后又弹出另一个提示:

> 无法找到静态库:QExport4RT.lib

我在两个提示上都点击了取消,然后构建一切,但在链接时却失败了:

> 致命错误:无法打开文件 QEXPORT4RT.LIB

我应该在哪里删除这个引用?它不再在项目中,我找不到它的任何痕迹。


更新: 我选中了移除引用的选项而不是取消,并进行了另一次构建,似乎解决了问题,但我仍然想知道我之前找不到的引用到底在哪里。

英文:

I tried a trial version of Advanced Data Export and Advanced Data Import for RAD Studio VCL from a third party. I was having issues, like the one I have now, since they didn't provide a .lib.

I decided to uninstall it, and on the export uninstall Norton Anti-virus blocked deleting some files in the Embarcadero program folders. The import uninstall went okay. After the uninstall of export, it needed a reboot, so I rebooted manually, checked the Embarcadero program folders, and those files that were blocked from being deleted were gone.

Now everything is uninstalled, I can't find any traces in my .hpp or .cpp files, it doesn't show up in packages, yet every time I try to build I get a prompt about:

> Unable to find static library: QImport3RT.lib

then another for:

> Unable to find static library: QExport4RT.lib

I click Cancel on both, and it builds everything, but on linking it fails with:

> Fatal: Unable to open file QEXPORT4RT.LIB

Where the heck do I remove this reference? It's not in the project anymore, and I can't find it anywhere.


UPDATE: I ticked the box to remove the reference instead of Cancel, and did another build, and that seemed to fix it, but I'd still like to know where the heck the reference was that I couldn't find.

答案1

得分: 1

以下是要翻译的内容:

参考可能存储在.cbproj文件中。每当我遇到像这样的奇怪构建问题时,我会搜索项目文件,通常会找到对一个我不再使用的.lib文件的引用。

当您点击“删除引用”时,这将从项目文件中删除它...

英文:

The reference was probably stored in the .cbproj file. Whenever I get weird build issues like this, I search through the project file and usually find a reference to a .lib file that I'm no longer using.

When you clicked 'Remove the reference' this would have removed it from the project file...

huangapple
  • 本文由 发表于 2023年5月18日 05:01:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76276166.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定