Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ Qt Linker Error Cannot open file 'Files.obj'

Sorry for bad english first of all. Today, I downloaded and installed Qt 5, before I used Qt 4.8.4. And my projects (old and new) dont wanna be linked.

D:\Qt\5.0.2\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    echo 1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "debug\\Webs.exe.embed.manifest">debug\Webs.exe_manifest.rc
    if not exist debug\Webs.exe if exist debug\Webs.exe.embed.manifest del debug\Webs.exe.embed.manifest
    if exist debug\Webs.exe.embed.manifest copy /Y debug\Webs.exe.embed.manifest debug\Webs.exe_manifest.bak
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:debug\Webs.exe.embed.manifest /OUT:debug\Webs.exe @C:\Users\UD\AppData\Local\Temp\Webs.exe.5528.16.jom
LINK : fatal error LNK1104: cannot open file 'Files.obj'
jom: D:\Projects\Webs\Makefile.Debug [debug\Webs.exe] Error 1104
jom: D:\Projects\Webs\Makefile [debug] Error 2

What can I do?

like image 383
UndeadDragon Avatar asked Dec 20 '22 04:12

UndeadDragon


1 Answers

I had a similiar error when I tried to link with an external library on Qt. The library was in the Program Files (x86) folder. To solve the problem I just replace the occurrence of 'Program Files (x86)' in the .pro file to 'PROGRA~2'.

like image 98
romulo Avatar answered Jan 14 '23 16:01

romulo