Problem Description:
compilation error: cannot open include file ‘afxres h’
Cause analysis:
this is the header file of MFC class library</ font>
Solution 1:
If the MFC component is not installed, you can replace it with the next two lines
//#include "afxres.h"
#include <Windows.h>
#include <winres.h>
//Only one line winres.h is OK!
Solution 2:
Just install MFC components
Read More:
- [Solved] fatal error C1083: Could Not Open Unable to open include file:“stdint.h”: No such file or directory
- [Solved] Fatal error C1083: unable to open include file: ‘d3dx9.h’
- [Solved] fatal error C1083: Cannot open included files: “stdafx.h”: No such file or directory
- Compile .h file with error “error: backslash-newline at end of file [-Werror]:
- [Solved] MAC Compile Error: fatal error: ‘endian.h‘ file not found
- Error (active) e1696 cannot open source file “errno.H” rpgworld problems encountered in installing visual studio 2017
- Keil Compile Error: ..\OBJ\USART.axf: error: L6002U: Could not open file ..\obj\sys.o: No such file or directory
- [Solved] Software Compile Error: xdo.c:29:34: fatal error: X11/extensions/XTest.h:
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- [Solved] 1.fatal error: NvInfer.h: No such file or directory
- fatal error: libusb.h: No such file or directory [How to Solve]
- crtdbg.h No such file or directory error [How to Solve]
- bazel Compile Error: absl/base/policy_checks.h:79:2: error: #error “C++ versions less than C++14 are not supported.”
- Mac Pyaudio Installation fatal error: ‘portaudio.h‘ file not found
- [Solved] import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- ./popins2: error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- [Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘