Hi when I am trying to run my C++ program I firstly get this error:
<inline asm>:1:2: note: instantiated into assembly here
int $3
^
then i change this line of code in catch.hpp
#define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
to this
#define CATCH_TRAP() __asm__(".inst 0xd4200000")
and then i get this
Undefined symbols for architecture arm64:
"parse_matrix(std::__1::basic_istream<char, std::__1::char_traits<char> >&)", referenced from:
____C_A_T_C_H____T_E_S_T____0() in tests-arr-01.cpp.o
____C_A_T_C_H____T_E_S_T____12() in tests-arr-01.cpp.o
"parse_matrix(std::__1::basic_istream<char, std::__1::char_traits<char> >&, std::__1::pair<unsigned long, unsigned long> const&)", referenced from:
____C_A_T_C_H____T_E_S_T____12() in tests-arr-01.cpp.o
"print_matrix(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, std::__1::pair<unsigned long, unsigned long> const&, std::__1::vector<int, std::__1::allocator<int> > const&)", referenced from:
____C_A_T_C_H____T_E_S_T____31() in tests-arr-01.cpp.o
ld: symbol(s) not found for architecture arm64
This issue happens in a bigger project with more than 1 cpp file. I have tried everything what I found on internet. Did somebody already solve this errors on M1 chips or maybe you have some tips how to run it?