Hello.
I've included the header file "catch.hpp" in my iOS application where I have a C++ part and defined #define CATCH_CONFIG_MAIN in a cpp file that I want to be tested.
I've also written a simple test:
int return_int(int arg){
return 1;
}
TEST_CASE( "Test", "[int]" ) {
REQUIRE(return_int(1) == 1);
REQUIRE(return_int(2) == 1);
}
But all I have are these two errors in the catch.hpp file:
Assigning to 'uint64_t' (aka 'unsigned long long') from incompatible type 'Catch::SimplePcg32'
Invalid operands to binary expression ('uint64_t' (aka 'unsigned long long') and 'Catch::SimplePcg32')

Compiler: Apple clang version 12.0.0 (clang-1200.0.32.2)
Hello.
I've included the header file "catch.hpp" in my iOS application where I have a C++ part and defined #define CATCH_CONFIG_MAIN in a cpp file that I want to be tested.
I've also written a simple test:
int return_int(int arg){
return 1;
}
TEST_CASE( "Test", "[int]" ) {
REQUIRE(return_int(1) == 1);
REQUIRE(return_int(2) == 1);
}
But all I have are these two errors in the catch.hpp file:
Assigning to 'uint64_t' (aka 'unsigned long long') from incompatible type 'Catch::SimplePcg32'
Invalid operands to binary expression ('uint64_t' (aka 'unsigned long long') and 'Catch::SimplePcg32')
Compiler: Apple clang version 12.0.0 (clang-1200.0.32.2)