'namespace "Catch" has no member "AutoReg"C/C++(135)
I am trying to use catch2 unit-test framework with a simple .cpp file to learn how to use this unit-test,
this is my cpp file:
#define CATCH_CONFIG_MAIN
#include "catch2.hpp"
int sum(int x, int y){
return x + y;
}
TEST_CASE( "computing sums", "[sum]" ) {
REQUIRE( sum(1,1) == 2 );
REQUIRE( sum(2,2) == 4 );
}
and I am getting this message
namespace "Catch" has no member "AutoReg"C/C++(135)
Since I am completely new to Catch2 system, I don't know what to do with this.
Can You see What could be wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
