Solution: add a blank line at the end of the file
For example, when compiling the following. H file, an error is reported
#define func1(name, begin) \
static thread_local A __x_y_z_agg_##name(#name); \
(__x_y_z_agg_##name).B(begin)
#define func2 A::C
It needs to be changed to
#define func1(name, begin) \
static thread_local A __x_y_z_agg_##name(#name); \
(__x_y_z_agg_##name).B(begin)
#define func2 A::C
Read More:
- [Solved] Compile Error: cannot open include file ‘afxres.h‘
- [Solved] MAC Compile Error: fatal error: ‘endian.h‘ file not found
- keil error #1-D: last line of file ends without a newline
- [Solved] fatal error C1083: Could Not Open Unable to open include file:“stdint.h”: No such file or directory
- fatal error: libavutil/avconfig.h: No such file…
- Keil Compile Error: ..\OBJ\USART.axf: error: L6002U: Could not open file ..\obj\sys.o: No such file or directory
- Containerd Error: btrfs/ioctl.h: No such file or directory
- Cmake Compile opencv error: The system is: Windows – 10.0.19042 – AMD64 (Log File)
- [Solved] Mac Cmake Complie openmp Error: fatal error: ‘omp.h‘ file not found
- crtdbg.h No such file or directory error [How to Solve]
- [Solved] hello.s:15 Error: junk at end of line, first unrecognized character valued 0x8
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- fatal error: libusb.h: No such file or directory [How to Solve]
- [Solved] 1.fatal error: NvInfer.h: No such file or directory
- [Solved] PCH Warning: header stop not at file scope
- Error (active) e1696 cannot open source file “errno.H” rpgworld problems encountered in installing visual studio 2017
- [Solved] utils.c:33:18: fatal error: zlib.h: No such file or directory
- [Solved] ROS fatal error: alsa/asoundlib. h: There is no such directory or file
- Redis installation error: jemalloc/jemalloc.h: No such file or directory.
- [Solved] Android12 Error: fatal error: ‘mediadrm/ICrypto.h‘ file not found