C++ Builder XE5 linker is unable to open WINDOWS.OBJ - c++

While trying to compile a C++ project in XE5 I get the following error:
[ilink32 Error] Fatal: Unable to open file 'WINDOWS.OBJ'
I already use "Windows" instead of "WinTypes" and "WinProcs" in my Delphi units.
Under "Delphi compiler" -> "Unit scopes" there is also the "WinAPI" entry.
Does anyone know what could be the problem?

Sounds like your search paths do not include an entry for $(BDS)\lib\$(Platform)\$(Config)

Related

why i am receiving cant open file 'opencv_core2411d.obj'

I am tryin to use openCV-2.4.11 library in visual studio 2013, to do so i followed
this tutorial and this slideshare tutorial
unfortunately, every time i run any C++ code even "Hello world", the compiler generates this error Link: fatal error LINK1104: cant open file 'opencv_core2411d.obj'
I also referred to some question in SO but they were not detailed or they discuss importing opencv library but in another IDE not visual studio.
note: the libs i used as input to the linker in the field 'Additional Dependencies':
opencv_calib3d2411d.lib
opencv_contrib2411d.lib
opencv_core2411d.lib
opencv_features2d2411d.lib
opencv_flann2411d.lib
opencv_gpu2411d.lib
opencv_haartraining_engined.lib
opencv_highgui2411d.lib
opencv_imgproc2411d.lib
opencv_legacy2411d.lib
opencv_ml2411d.lib
opencv_nonfree2411d.lib
opencv_objdetect2411d.lib
opencv_photo2411d.lib
opencv_stitching2411d.lib
opencv_ts2411d.lib
opencv_video2411d.lib
opencv_videostab2411d.lib
and i am using win8
please provide steps to successfully import opecv2.4.11 into visula studio and let me know why i am receivin this error
In my experience the linker error:
Link: fatal error LINK1104: cant open file 'opencv_core2411d.obj'
usually means that the linker cannot find the file. This is generally because the linker properties are not correct.
Check the property page under linker->"Additional Library Directories" and make sure that it is filled in and the path is correct.
Depending on how you have the project setup you may have different settings for debug and release configurations.
I was also having the same problem for quite a time and after searching everywhere in the internet i finally got the solution.
These input files are correct but you need to give the full path in Linker->Input->Additional Dependencies. i will show you how.
C:\opencv\build\x64\vc12\lib\opencv_calib3d2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_contrib2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_core2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_features2d2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_flann2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_gpu2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_highgui2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_imgproc2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_legacy2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_ml2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_objdetect2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_ocl2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_photo2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_stitching2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_superres2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_ts2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_video2411d.lib
C:\opencv\build\x64\vc12\lib\opencv_videostab2411d.lib
Also in Linker->General->Use Library Dependency Input, Click on yes
This should certainly help.

fatal error LNK1104: cannot open file "Debug/

I'm trying to run C++ code in microsoft visual version 6.0. The code is well compiling but I'm getting the error "fatal error LNK1104: cannot open file "Debug/Assignment.exe" when I try to build. The file is saved in the project named Assignment. I'm new to C++ and the microsoft visual stuff. I don't know where to start from to get around error. Please help.
Sounds like a copy of the exe (Debug/Assignment.exe) is already running so visual studio can't overwrite the file. Have a look in the task manager / process explorer and kill any copies that are running then try again.
Curiously, in my case it was a CMake 'debug' linker library path setting that caused almost the same error, and I guess you can have similar problems with 'optimized.obj' linking failures.
LINK : fatal error LNK1104: cannot open file 'debug.obj'
This is because the compiler doesn't have access to that file. Change the project directory and try again.
For me this error started coming when I turned on Preprocessing output
Project properties -> C/C++ -> Preprocessing -> Preprocess to a file: Yes (/P)

Directory of the release folder for dll generation

I am linking dll with my app. It seems that there are no errors and it's being recognised in a good way.
but I am having an error of LINK 1181:
Error 3 error LNK1181: cannot open input file 'c:\users\xxx\Project\Release\mydll.lib
What could be the problem for that?
Update: I am getting a new message now which says the program can't start because tulips.dll is missing from your computer. Try reinstalling the program to fix this problem!!!!
It seems that mydll.lib can not be found by the project.
LNK1181: The linker could not find filename because it does not exist or the path was not found.
=> From the project, can you 2x click on it and see if VS2010 finds it?

Link Error 'target machine "THUMB" requires "/WINDOWSCE"' on static library

I am moving a Embedded Visual C++ project to VS2005. When I compile the project I get this error: fatal error CVT1109: target machine "THUMB" requires "/WINDOWSCE" CVTRES. Goggling this just left me more confused. Most stated I needed to add the linker option /WINDOWSCE. My issue is there is no linker options in Configuration Properties for a static library.
I left out I am also getting this link error:
LNK1123: failure during conversion to COFF: file invalid or corrupt
Update The error above happens when the the output windows says it is 'Creating library...'. I believe this has to do with the resource file in the project. If I remove the rc file I can create the library. Why is the rc file causing the CVTRES error?
Finally Resolved I opened
Project Properties --> Configuration Properties --> Librarian --> Command Line
Than I added the following line:
/subsystem:$(CESubsystem) /MACHINE:THUMB
I would of sworn I tried that from the start, thank the heavens I found the solution hope it helps someone else.

compiler error help (E2209 Unable to open include file)

I am using Borland C++ Builder 6. I have installed LMD Tool version 7, and ABC for Delphi 6 companion version (runtime pakage only).
When I compiled a software unit, I received the following error messages:
[C++ Error] iss_hmi_gui_cached.h(58): E2209 Unable to open include file 'abcbtn.hpp'
Full parser context
C++ Error] iss_hmi_gui_cached.h(59): E2209 Unable to open include file 'abcctl32.hpp'
Full parser context
[C++ Error] iss_hmi_gui_cached.h(61): E2209 Unable to open include file 'abcexctl.hpp'
and
[C++ Error] Lmdcontrol.hpp(24): E2209 Unable to open include file 'Uxtheme.hpp'
[C++ Error] Lmdcustomspeedbutton.hpp(22): E2209 Unable to open include file 'Uxtheme.hpp'
I have searched my PC, and I could not find Uxtheme.hpp anywhere.
Any help is appreciated.
Thanks in advance
David.
UxTheme.h is part of the Windows SDK. The SDK comes with the newer versions of visual studio, but you can download it from microsoft. You will also have to tell the compiler where to find the SDK header and library files.
Concerning the ABC errors, did you build with the
Project|Options|Packages - Build with Runtime Packages
checkbox checked?
And does your package names list include the appropriate runtime package?
Well, it looks like some of your source files are missing.