Home > Back-end >  Gtest compiler error
Gtest compiler error

Time:10-08


 Scanning dependencies of target gtest 
[25%] Building CXX object CMakeFiles/gtest dir/SRC/gtest - all. Cc. O
In the file included the from/usr/SRC/gtest/SRC/gtest - all. Cc: 42:0:
The/usr/SRC/gtest/SRC/gtest. Cc: "virtual destructor In testing: Test: : ~ Test () ':
The/usr/SRC/gtest/SRC/gtest. Cc: 1897:10: error: type 'const class testing: : internal: : scoped_ptr & lt; Testing: : internal: : GTestFlagSaver> 'argument given to' delete ', expected pointer
The delete gtest_flag_saver_;
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
The/usr/SRC/gtest/SRC/gtest. Cc: At global scope:
The/usr/SRC/gtest/SRC/gtest. Cc: 2177:1: error: prototype for 'testing: : TestInfo: : TestInfo (const string& The const string& , const char *, const char *, testing: : internal: : TypeId, testing: : internal: : TestFactoryBase *) 'does not match any in class' testing: : TestInfo
'TestInfo: : TestInfo (const STD: : string& A_test_case_name,
^ ~ ~ ~ ~ ~ ~ ~
In the file included the from/usr/local/include/gtest/internal/gtest - internal. H: 40:0,
The from/usr/local/include/gtest/gtest. H: 58,
The from/usr/SRC/gtest/SRC/gtest - all. Cc: 39:
/usr/local/include/gtest/gtest. H: 772:3: error: candidates are: testing: : TestInfo: : TestInfo (const testing: : TestInfo&)
GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo);
^
In the file included the from/usr/SRC/gtest/SRC/gtest - all. Cc: 39:0:
/usr/local/include/gtest/gtest. H: 728:3: error: testing: : TestInfo: : TestInfo (const string& The const string& , const char *, const char *, testing: : internal: : CodeLocation, testing: : internal: : TypeId, testing: : internal: : TestFactoryBase *)
TestInfo (const STD: : string& Test_case_name,
^ ~ ~ ~ ~ ~ ~ ~
In the file included the from/usr/SRC/gtest/SRC/gtest - all. Cc: 42:0:
The/usr/SRC/gtest/SRC/gtest. Cc: In function 'testing: : TestInfo * testing: : internal: : MakeAndRegisterTestInfo (const char *, const char *, const char *, const char *, testing: : internal: : TypeId, testing: : internal: : SetUpTestCaseFunc, testing: : internal: : TearDownTestCaseFunc, testing: : internal: : TestFactoryBase *) ":
The/usr/SRC/gtest/SRC/gtest. Cc: 2227:45: error: no matching function for the call to 'testing: : TestInfo: : TestInfo (const char * & amp; The const char * & amp; The const char * & amp; The const char * & amp; The const void * & amp; Testing: : internal: : TestFactoryBase * & amp;) '
Fixture_class_id, factory);
^
In the file included the from/usr/local/include/gtest/internal/gtest - internal. H: 40:0,
The from/usr/local/include/gtest/gtest. H: 58,
The from/usr/SRC/gtest/SRC/gtest - all. Cc: 39:
/usr/local/include/gtest/gtest. H: 772:3: note: candidate: testing: : TestInfo: : TestInfo (const testing: : TestInfo&)
GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo);
^
/usr/local/include/gtest/gtest. H: 772:3: note: candidate expects one argument, 6 provided
In the file included the from/usr/SRC/gtest/SRC/gtest - all. Cc: 39:0:
/usr/local/include/gtest/gtest. H: 728:3: note: candidate: testing: : TestInfo: : TestInfo (const string& The const string& , const char *, const char *, testing: : internal: : CodeLocation, testing: : internal: : TypeId, testing: : internal: : TestFactoryBase *)
TestInfo (const STD: : string& Test_case_name,
^ ~ ~ ~ ~ ~ ~ ~
/usr/local/include/gtest/gtest. H: 728:3: note: candidate expects the arguments, 6 provided
In the file included the from/usr/SRC/gtest/SRC/gtest - all. Cc: 42:0:
The/usr/SRC/gtest/SRC/gtest. Cc: In function 'void testing: : internal: : InitGoogleTestImpl (int *, * *) CharType' :
The/usr/SRC/gtest/SRC/gtest. Cc: 4983:3: error: 'g_argvs' was not declared in this scope
G_argvs. The clear ();
^ ~ ~ ~ ~ ~ ~
In the file included the from/usr/SRC/gtest/SRC/gtest - all. Cc: 43:0:
The/usr/SRC/gtest/SRC/gtest - death - test. Cc: In function 'void testing: : internal: : SplitString (const string& , char, STD: : vector *) : '
The/usr/SRC/gtest/SRC/gtest - death - test. Cc: 1208:13: error: 'void testing: : internal: : SplitString (const string& , char, STD: : vector *) 'was declared "extern" and later "static" [- fpermissive]
The static void SplitString (const: : STD: : string& STR, char delimiter,
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
In the file included the from/usr/local/include/gtest/gtest. H: 58:0,
The from/usr/SRC/gtest/SRC/gtest - all. Cc: 39:
/usr/local/include/gtest/internal/gtest - internal. H: 612-6: note: previous declaration of 'void testing: : internal: : SplitString (const string& , char, STD: : vector *)
'Void SplitString (const: : STD: : string& STR, char delimiter,
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
In the file included the from/usr/SRC/gtest/SRC/gtest - all. Cc: 45:0:
The/usr/SRC/gtest/SRC/gtest - port. Cc: In function 'const char * testing: : internal: : StringFromGTestEnv (const char *, const char *) ":
The/usr/SRC/gtest/SRC/gtest - port. Cc: 798:13: error: ambiguating new declaration of 'const char * testing: : internal: : StringFromGTestEnv (const char *, const char *)
'nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related