Cannot open c++ standard libraries when compiling x64 bits - c++

Hei everybody!
I have a Visual studio 2015 project. I can build in x86 meanwhile if I try to build in x64
I have the following errors. I didn't change anything about the "default" configuration.
Any clue on why I have these issues_
Error (active) cannot open source file "algorithm"
Error (active) cannot open source file "cassert"
Error (active) cannot open source file "cassert"
Error (active) cannot open source file "cmath"
Error (active) cannot open source file "cstddef"
Error (active) cannot open source file "cstring"
Error (active) cannot open source file "ctype.h"
Error (active) cannot open source file "excpt.h"
Error (active) cannot open source file "excpt.h"
Error (active) cannot open source file "excpt.h"
Error (active) cannot open source file "fstream"
Error (active) cannot open source file "functional"
Error (active) cannot open source file "iostream"
Error (active) cannot open source file "limits"
Error (active) cannot open source file "map"
Error (active) cannot open source file "memory"
Error (active) cannot open source file "stdarg.h"
Error (active) cannot open source file "stdarg.h"
Error (active) cannot open source file "stdlib.h"

Related

problem when compiling vbsp source sdk 2013 ce

Severity Code Description Project File Line Suppression State
Error (active) E0992 command-line error: invalid macro definition: PROJECTDIR=D:\source-sdk-2013-ce-master\sp\src\utils\vbsp Vbsp D:\source-sdk-2013-ce-master\sp\src\utils\vbsp\cubemap.cpp 1
the error message
i compiled the solution and i expected it to work without error but it did not

Microsoft Visual Studio having compilation errors from previous but not current settings

I am trying to compile a project using ImGui however I get these errors:
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open source file: 'src\vendor\imgui\imgui_widgets.cpp': No such file or directory SDL2_IMGUI_TEST D:\Not_Streaming\Commonly_Used\Programming\C++\Projects\SDL2_IMGUI_TEST\SDL2_IMGUI_TEST\c1xx 1
Error C1083 Cannot open source file: 'src\vendor\imgui\imgui.cpp': No such file or directory SDL2_IMGUI_TEST D:\Not_Streaming\Commonly_Used\Programming\C++\Projects\SDL2_IMGUI_TEST\SDL2_IMGUI_TEST\c1xx 1
Error C1083 Cannot open source file: 'src\vendor\imgui\imgui_demo.cpp': No such file or directory SDL2_IMGUI_TEST D:\Not_Streaming\Commonly_Used\Programming\C++\Projects\SDL2_IMGUI_TEST\SDL2_IMGUI_TEST\c1xx 1
Error C1083 Cannot open source file: 'src\vendor\imgui\imgui_draw.cpp': No such file or directory SDL2_IMGUI_TEST D:\Not_Streaming\Commonly_Used\Programming\C++\Projects\SDL2_IMGUI_TEST\SDL2_IMGUI_TEST\c1xx 1
Error C1083 Cannot open source file: 'src\vendor\imgui\imgui_impl_opengl3.cpp': No such file or directory SDL2_IMGUI_TEST D:\Not_Streaming\Commonly_Used\Programming\C++\Projects\SDL2_IMGUI_TEST\SDL2_IMGUI_TEST\c1xx 1
Error C1083 Cannot open source file: 'src\vendor\imgui\imgui_impl_sdl.cpp': No such file or directory SDL2_IMGUI_TEST D:\Not_Streaming\Commonly_Used\Programming\C++\Projects\SDL2_IMGUI_TEST\SDL2_IMGUI_TEST\c1xx 1
Error C1083 Cannot open source file: 'src\vendor\imgui\imgui_stdlib.cpp': No such file or directory SDL2_IMGUI_TEST D:\Not_Streaming\Commonly_Used\Programming\C++\Projects\SDL2_IMGUI_TEST\SDL2_IMGUI_TEST\c1xx 1
Error C1083 Cannot open source file: 'src\vendor\imgui\imgui_tables.cpp': No such file or directory SDL2_IMGUI_TEST D:\Not_Streaming\Commonly_Used\Programming\C++\Projects\SDL2_IMGUI_TEST\SDL2_IMGUI_TEST\c1xx 1
This is really quite odd because the files USED to be inside a folder called src\vendor but are now in another folder called Dependencies\imgui. It doesn't make sense to me why it is even mentioning a folder called vendor at all? Here are my search directories for #include
$(SolutionDir)Dependencies\imgui
$(SolutionDir)Dependencies\GLEW\include
$(SolutionDir)Dependencies\SDL2\include
There is a preprocessor for GLEW but not IMGUI, and there are linker settings for GLEW AND SDL2 but not IMGUI. These are compile errors. What could be the problem?

Creating a new class c++ in Unreal with Visual Studio gives me too many errors

I have a problem with creating new c++ classes. For example, a did a Player controller and it compiles but when it is open in Visual Studio, it says there are too many errors for the IntelliSense to function properly. My Unreal Engine version is 4.25 and visual studio 2019 version 16.6.2
Then it gets crazy in the Error List with 15390 errors
Severity Code Description Project File Line Suppression State
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformTLS.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\PlatformTLS.h 8
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformTime.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\PlatformTime.h 7
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformString.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\PlatformString.h 6
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformProperties.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\PlatformProperties.h 11
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformProcess.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\PlatformProcess.h 7
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformMisc.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\PlatformMisc.h 7
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformMemory.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\PlatformMemory.h 7
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformMath.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\PlatformMath.h 7
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformAtomics.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\PlatformAtomics.h 8
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformCompilerSetup.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\Platform.h 1024
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatform.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\Platform.h 135
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformCompilerPreSetup.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\Platform.h 81
Error (active) E1696 cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMCriticalSection.h" TestingCode C:\Program Files\Epic Games\UE_4.25\Engine\Source\Runtime\Core\Public\HAL\CriticalSection.h 7
Go to a VS solution folder. Delete following folders : ".vs", "Intermediate", "Saved"
Delete solution (*.sln file). Keep *.uproject
Right click on *.uproject in explorer, click "switch unreal engine versoin" and select your current engine version. Project files and solutions will get regenerated.
Open your vs solution. Your generated files will be missing, so hit "build" button.
Go to Tools->Options->Text editor->Advanced, set "Recreate Database" to "true" and restart visual studio
Wait and pray for it to work (worked for me tho)
I have something like this nearly daily. My advice is not to rely on IntelliSense when it comes to errors and change the "Errors" window in Visual Studio to just display "Build only" errors.
When you build, you'll only get the real errors that are actually messing up your build. Because the UnrealHeaderTool actually creates a lot of code in the background, some things are not available when creating a new class or refactoring methods.
A best practice seems to be to just rely on what MSBuild gives you, instead of waiting for IntelliSense to catch up. Fixing an error like "could not find this file" or "undefined type" from the compiler should be way easier than trying to tell IntelliSense to understand that there exist macros that are not Preprocessor-macros, but UHT macros.
If you just stick to the Build errors, the problem will go away at some point. At least for me it did.
Also note that the unity build that Unreal uses, may break files you did not even work on, because you forgot an include that was already there when the build tool merged the files in the last build.

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.

LNK1181 errors when building ClamAV

I am trying to build ClamAV and am running into Linker errors. I tried doing what was said here in the answer: OpenSSL errors - ClamAV build on Windows 10 for the Linker part, however, I don't see any Linker option in Visual Studio 2010.
This is what the project properties look like:
There is nothing in Common Properties either. These are the errors I'm getting:
error LNK1181: cannot open input file 'libeay32.lib'
error LNK1181: cannot open input file 'libeay32.lib'
warning C4090: '=' : different 'const' qualifiers
error LNK1181: cannot open input file 'C:\Users\Mo\Desktop\clamav-0.99\win32\Win32\Release\libclamav.lib'
error LNK1181: cannot open input file 'libeay32.lib'
error LNK1181: cannot open input file 'C:\Users\Mo\Desktop\clamav-0.99\win32\Win32\Release\libclamav.lib'
error LNK1181: cannot open input file 'C:\Users\Mo\Desktop\clamav-0.99\win32\Win32\Release\libclamav.lib'
error LNK1181: cannot open input file 'C:\Users\Mo\Desktop\clamav-0.99\win32\Win32\Release\libclamav.lib'
error LNK1181: cannot open input file 'C:\Users\Mo\Desktop\clamav-0.99\win32\Win32\Release\libclamav.lib'
Unable to find source file 'C:\clamdeps\win32\openssl\lib\ssleay32.dll' for file 'ssleay32.dll', located in '[TARGETDIR]', the file may be absent or locked.
Unable to find source file 'C:\clamdeps\win32\openssl\lib\libeay32.dll' for file 'libeay32.dll', located in '[TARGETDIR]', the file may be absent or locked.
Would anyone have any idea on how I can fix this? Any help would be appreciated, thanks!