How to fix 'cxxabi.h' file not found error? - c++

I'm using Microsoft Visual Studio 2022 version and I'm getting this error when trying to compile my project which depends on this cmdline open source project.
cmdline.h(39,10): fatal error : 'cxxabi.h' file not found
How to fix this error?

Related

Error linking to x86.obj

Using Visual Studio 2017 RC, I get this compile error:
LINK : fatal error LNK1181: cannot open input file 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.24728\lib\x86.obj'
x86.obj does not exist on my system. Yet, the compiler wants to link to it, although I have not instructed so in the project properties. Does it misinterpret a folder name ($(VC_LibraryPath_x86)) as an object to which it has to link? Could it be a bug?
On the other hand, I found out that a similar problem also occurs in Visual Studio 2015, there is even an (unanswered) question on it: LNK1104 cannot open file '...lib.obj'
Does anyone have an idea what is going wrong here? Thanks.
--
Diagnostic build output:
LINK : fatal error LNK1104: cannot open file 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.24728\lib\x86.obj'
The command exited with code 1104.
Output Property: LinkSkippedExecution=False
Done executing task "Link" -- FAILED.

opencv2/core/core.hpp': No such file or directory

I followed this video tutorial for installing OpenCV for Visual C++ in Visual Studio 2015 (14) under Windows 10. https://www.youtube.com/watch?v=7SM5OD2pZKY
However I get this error:
Severity Code Description Project File Line Category Source Suppression State Tool
Error C1083 Cannot open include file: 'opencv2/core/core.hpp': No such file or directory CannyStill1 c:\users\mona\documents\visual studio 2015\projects\cannystill1\cannystill1\cannystill1.cpp 3 fatal Build
Please suggest solution.

fatal error lnk1104 in C++

I am using openssl ssleay.lib my project say MyProj which is also an library project.
There are many other project under this workspace which are using MyProj library.
I did the settings in MyProj library for using openssl.
Which compiles and links fine.
But when I try to compile whole workspace.
then I am getting the error
fatal error LNK1104: cannot open file "libeay32.lib"
al error LNK1104: cannot open file "ssleay32.lib"
How can i solve this issue ?
Any hint will be appreciated.

Errors when running the program in Visual Studio 2013

I have these problems coming up, when trying to run the program in Visual Studio 2013 C++. I know the code is ok, but every time, this happens.
Error 1 error : The source file for this compilation can be found at:
"C:\Users\Łukasz\AppData\Local\Temp\4fac5eed-ed73-4dda-8bdc-c333e2e82b4c.txt" C:\Program
Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets
Error 2
error MSB3758: An error has occurred during compilation. error CS0016:
Could not write to output file
'c:\Users\Łukasz\AppData\Local\Temp\dtlusbnh.dll' -- 'Access is
denied. ' C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets
Error 3
error MSB4036: The "SetEnvironmentVariable" task was not found. Check
the following: 1.) The name of the task in the project file is the
same as the name of the task class. 2.) The task class is "public" and
implements the Microsoft.Build.Framework.ITask interface. 3.) The task
is correctly declared with in the project file, or in the
*.tasks files located in the "C:\Program Files (x86)\MSBuild\12.0\bin" directory. C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets
The
” Could not write to output file
error message means that the file is in use.
Since it's a DLL, it's in use by some program or programs.
You need to terminate those processes.
Error 3
error MSB4036: The "SetEnvironmentVariable" task was not found. Check
the following: 1.) The name of the task in the project file is the
same as the name of the task class. 2.) The task class is "public" and
implements the Microsoft.Build.Framework.ITask interface. 3.) The task
is correctly declared with in the project file, or in the *.tasks
files located in the "C:\Program Files (x86)\MSBuild\12.0\bin"
directory. C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets
I had only the one error above, after repairing visual studio it resolved the problem.
I faced the same problem.
Run Visual Studio as Administrator solved my problem.
I encountered this issues for Visual Studio 2019 and running visual studio as administrator resolved the issue

addressbook example of protocol buffer is not compiling

i am trying to compile addressbook example of protocol buffers but it is throwing a error:
write.cpp(1) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory
In write.cpp it encounters #include <iostream> and is throwing this error though when i am right clicking on <iostream> and clicking on open document it is opening the iostream file.
I have included the path in include directories then also it is showing me the same errors.
I am using Visual Studio 2005.
Your environment might not be set up for C++ or could be broken.
There's an easy way to try to fix it:
Tools -> Import and Export settings -> reset all
I only have VS 2012 installed but I think it should be quite the same in your older version.
I resolved the above issue by putting " " around the search path as it contained spaces between the file names.
and now i am trying to port my Protobuf2.5.0 code to wince for MIPS platform and when i am trying to build it is throwing me the following errors:
1>C:\Program Files\Microsoft Visual Studio 8\VC\ce\include\crtdefs.h(100) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file.
1>zero_copy_stream_impl.cc
1>..\src\google\protobuf\io\zero_copy_stream_impl.cc(50) : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
1>zero_copy_stream.cc