Linux compile errors

148 views
Skip to first unread message

Belveder

unread,
Aug 6, 2009, 4:56:21 AM8/6/09
to Google C++ Testing Framework
Hi,

we tried to add unit tests based on the google test framework into our
own software suite. However, I stumbled across several problems to
which I could not find a solution. I hope someone can help me with
this:

First, our nightly build server is running 64-bit Ubuntu 8.04.3 LTS
with 2.6.29-xen-r1 kernel. The gcc version is 4.2.4 (Ubuntu
4.2.4-1ubuntu4). I compiled the testing suite and everything works
fine (make check). However, if I try to compile my own application,
this errors come up:

>> g++ -DLINUX -I./include -I/usr/local/include -o main.cpp -c main.cpp
In file included from /usr/local/include/gtest/internal/gtest-
internal.h:57,
from /usr/local/include/gtest/gtest.h:65,
from /home/nightly/StbES/StbMath/unittest/main.cpp:
26:
/usr/local/include/gtest/internal/gtest-type-util.h:98: error:
expected identifier before numeric constant
/usr/local/include/gtest/internal/gtest-type-util.h:98: error:
expected unqualified-id before numeric constant
/usr/local/include/gtest/internal/gtest-type-util.h:718: error:
expected type-specifier
/usr/local/include/gtest/internal/gtest-type-util.h:718: error:
expected ‘>’
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T2’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T3’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T4’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T5’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T6’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T7’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T8’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T9’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T10’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T11’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:744: error: ‘T12’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T13’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T14’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T15’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T16’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T17’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T18’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T19’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T20’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T21’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T22’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T23’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T24’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T25’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:745: error: ‘T26’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T27’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T28’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T29’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T30’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T31’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T32’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T33’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T34’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T35’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T36’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T37’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T38’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T39’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:746: error: ‘T40’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T41’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T42’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T43’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T44’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T45’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T46’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T47’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T48’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T49’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error: ‘T50’
was not declared in this scope
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 2 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 3 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 4 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 5 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 6 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 7 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 8 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 9 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 10 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 11 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 12 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 13 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 14 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 15 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 16 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 17 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 18 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 19 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 20 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 21 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 22 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 23 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 24 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 25 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 26 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 27 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 28 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 29 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 30 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 31 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 32 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 33 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 34 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 35 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 36 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 37 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 38 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 39 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 40 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 41 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 42 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 43 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 44 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 45 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 46 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 47 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 48 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 49 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:747: error:
template argument 50 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:763: error:
template argument 1 is invalid
/usr/local/include/gtest/internal/gtest-type-util.h:779: error: wrong
number of template arguments (2, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:795: error: wrong
number of template arguments (3, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:810: error: wrong
number of template arguments (4, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:825: error: wrong
number of template arguments (5, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:840: error: wrong
number of template arguments (6, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:856: error: wrong
number of template arguments (7, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:872: error: wrong
number of template arguments (8, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:887: error: wrong
number of template arguments (9, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:902: error: wrong
number of template arguments (10, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:917: error: wrong
number of template arguments (11, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:933: error: wrong
number of template arguments (12, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:949: error: wrong
number of template arguments (13, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:966: error: wrong
number of template arguments (14, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:982: error: wrong
number of template arguments (15, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:998: error: wrong
number of template arguments (16, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1015: error: wrong
number of template arguments (17, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1032: error: wrong
number of template arguments (18, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1049: error: wrong
number of template arguments (19, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1065: error: wrong
number of template arguments (20, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1081: error: wrong
number of template arguments (21, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1098: error: wrong
number of template arguments (22, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1115: error: wrong
number of template arguments (23, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1132: error: wrong
number of template arguments (24, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1149: error: wrong
number of template arguments (25, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1165: error: wrong
number of template arguments (26, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1182: error: wrong
number of template arguments (27, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1200: error: wrong
number of template arguments (28, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1218: error: wrong
number of template arguments (29, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1236: error: wrong
number of template arguments (30, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1253: error: wrong
number of template arguments (31, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1271: error: wrong
number of template arguments (32, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1289: error: wrong
number of template arguments (33, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1307: error: wrong
number of template arguments (34, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1325: error: wrong
number of template arguments (35, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1342: error: wrong
number of template arguments (36, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1360: error: wrong
number of template arguments (37, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1378: error: wrong
number of template arguments (38, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1396: error: wrong
number of template arguments (39, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1414: error: wrong
number of template arguments (40, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1432: error: wrong
number of template arguments (41, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1451: error: wrong
number of template arguments (42, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1470: error: wrong
number of template arguments (43, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1489: error: wrong
number of template arguments (44, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1508: error: wrong
number of template arguments (45, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1527: error: wrong
number of template arguments (46, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1546: error: wrong
number of template arguments (47, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1565: error: wrong
number of template arguments (48, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1584: error: wrong
number of template arguments (49, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:1603: error: wrong
number of template arguments (50, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:3307: error: wrong
number of template arguments (50, should be 1)
/usr/local/include/gtest/internal/gtest-type-util.h:743: error:
provided for ‘template<class T1> struct testing::Types’
/usr/local/include/gtest/internal/gtest-type-util.h:3307: error:
template argument 1 is invalid
In file included from /usr/local/include/gtest/gtest.h:69,
from /home/nightly/StbES/StbMath/unittest/main.cpp:
26:
/usr/local/include/gtest/gtest-param-test.h:1184: error: expected
unqualified-id before ‘)’ token

I have absolutely no idea why this happens. Might this be a gcc/glibc
problem?

Regards
Clemens


Chandler Carruth

unread,
Aug 6, 2009, 12:22:01 PM8/6/09
to Belveder, Google C++ Testing Framework
We will need more information to help here. What are the contents of
main.cpp? Where did you build the gtest libraries? You seem to be
using them after installing; what version did you install?

On Thursday, August 6, 2009, Belveder <clemen...@gmail.com> wrote:
>>> g++ -DLINUX -I./include -I/usr/local/include -o main.cpp -c main.cpp

Uh, I think you want '-o main.o' here, yea? I don't imagine that fixes all of

Belveder

unread,
Aug 6, 2009, 12:58:45 PM8/6/09
to Google C++ Testing Framework
Hi,

thanks for your reply. You are right, the g++ call was wrong but that
did not cause the error actually.

I finally got rid of the error just 5 minutes ago and it took me some
hours to figure it out. The reason for the vast amount of errors is
that I included gtest.h not as the first header file, but after some
other includes from our own projects. In some of the project files
there are definitions of functions which also include T1, T2 and
things like that as template parameters. I cannot explain exactly
which of our own functions caused this terrible crash, however it is
gone now after I changed <gtest/gtest.h> to be the first of all the
includes in main.cpp. I wonder why this is such a critical thing with
gcc, because in Visual Studio this was not a problem at all.

Regards
Clemens

On Aug 6, 6:22 pm, Chandler Carruth <chandl...@google.com> wrote:
> We will need more information to help here. What are the contents of
> main.cpp? Where did you build the gtest libraries? You seem to be
> using them after installing; what version did you install?
>
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages