INFO: [SIM 2] *************** CSIM start ***************
INFO: [SIM 4] CSIM will launch GCC as the compiler.
Compiling ../../../example_tb.cpp in debug mode
Compiling ../../../example.cpp in debug mode
Generating csim.exe
Makefile.rules:392: recipe for target 'csim.exe' failed
In file included from C:/Xilinx/Vitis_HLS/2022.1/include/floating_point_v7_0_bitacc_cmodel.h:144:0,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_fpo.h:189,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_half_fpo.h:64,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_half.h:71,
from C:/Xilinx/Vitis_HLS/2022.1/include/etc/ap_private.h:98,
from C:/Xilinx/Vitis_HLS/2022.1/include/ap_common.h:710,
from C:/Xilinx/Vitis_HLS/2022.1/include/ap_int.h:56,
from ../../../example.h:1,
from ../../../example_tb.cpp:1:
C:/Xilinx/Vitis_HLS/2022.1/include/gmp.h:63:0: warning: "__GMP_LIBGMP_DLL" redefined
#define __GMP_LIBGMP_DLL 0
In file included from C:/Xilinx/Vitis_HLS/2022.1/include/hls_fpo.h:189:0,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_half_fpo.h:64,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_half.h:71,
from C:/Xilinx/Vitis_HLS/2022.1/include/etc/ap_private.h:98,
from C:/Xilinx/Vitis_HLS/2022.1/include/ap_common.h:710,
from C:/Xilinx/Vitis_HLS/2022.1/include/ap_int.h:56,
from ../../../example.h:1,
from ../../../example_tb.cpp:1:
C:/Xilinx/Vitis_HLS/2022.1/include/floating_point_v7_0_bitacc_cmodel.h:136:0: note: this is the location of the previous definition
#define __GMP_LIBGMP_DLL 1
In file included from C:/Xilinx/Vitis_HLS/2022.1/include/floating_point_v7_0_bitacc_cmodel.h:144:0,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_fpo.h:189,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_half_fpo.h:64,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_half.h:71,
from C:/Xilinx/Vitis_HLS/2022.1/include/etc/ap_private.h:98,
from C:/Xilinx/Vitis_HLS/2022.1/include/ap_common.h:710,
from C:/Xilinx/Vitis_HLS/2022.1/include/ap_int.h:56,
from ../../../example.h:1,
from ../../../example.cpp:1:
C:/Xilinx/Vitis_HLS/2022.1/include/gmp.h:63:0: warning: "__GMP_LIBGMP_DLL" redefined
#define __GMP_LIBGMP_DLL 0
In file included from C:/Xilinx/Vitis_HLS/2022.1/include/hls_fpo.h:189:0,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_half_fpo.h:64,
from C:/Xilinx/Vitis_HLS/2022.1/include/hls_half.h:71,
from C:/Xilinx/Vitis_HLS/2022.1/include/etc/ap_private.h:98,
from C:/Xilinx/Vitis_HLS/2022.1/include/ap_common.h:710,
from C:/Xilinx/Vitis_HLS/2022.1/include/ap_int.h:56,
from ../../../example.h:1,
from ../../../example.cpp:1:
C:/Xilinx/Vitis_HLS/2022.1/include/floating_point_v7_0_bitacc_cmodel.h:136:0: note: this is the location of the previous definition
#define __GMP_LIBGMP_DLL 1
obj/example.o:example.cpp:(.bss+0x0): multiple definition of `.weak._ZN3hls27MAXIPointer2AccessRecordMapE._ZnwyPv'
obj/example_tb.o:example_tb.cpp:(.bss+0x0): first defined here
obj/example.o: In function `std::_Tuple_impl<0ull, void*&&>::_Tuple_impl<void*>(void*&&)':
C:/Xilinx/Vitis_HLS/2022.1/tps/win64/msys64/mingw64/include/c++/6.2.0/bits/stl_tree.h:1912: multiple definition of `.weak._ZGVN3hls27MAXIPointer2AccessRecordMapE._ZnwyPv'
obj/example_tb.o:C:\Users\username\AppData\Roaming\Xilinx\Vitis\manualburst\solution1\csim\build/../../../example_tb.cpp:9: first defined here
collect2.exe: error: ld returned 1 exit status
make: *** [csim.exe] Error 1
ERR: [SIM 100] 'csim_design' failed: compilation error(s).
INFO: [SIM 3] *************** CSIM finish ***************
This works in Linux (specifically Ubuntu 20.04).
...