Sysprogs forums › Forums › VisualGDB › IntelliSense woes after adding -std=c++0x
- This topic has 4 replies, 3 voices, and was last updated 10 years, 7 months ago by support.
-
AuthorPosts
-
April 16, 2014 at 07:32 #782lxhParticipant
I’ve added through the project properties dialog:
- to “include directories:” c:sysgccraspberryarm-linux-gnueabihfincludec++4.6
- to “CFLAGS” -std=c++0x to the
to the IntelliSense directories:
c:sysgccraspberryarm-linux-gnueabihfincludec++4.6And now I get loads of IntelliSense errors. What am I missing? Is there some more documentation to this? I come from .Net C#, but boy, this feels like an ancient spaghetti-wired dark forest. I hope anyone can shed some light here.
April 16, 2014 at 18:02 #3047ketParticipantHi,
VisualGDB uses the IntelliSense feature provided by Visual Studio. Only Visual Studio versions 2012 and 2013 have added gradual support for c++0x and c++11, the Visual Studio 2010’s IntelliSense is going to have issues understanding any c++0x/c++11 syntax.
If you are using our generated makefiles, then there is also no need to add IntelliSense directories separately, VisualGDB will look at the include directories and set the IntelliSense directories automatically.
If you need further help with IntelliSense errors, please post a lists of them here.
April 24, 2014 at 14:21 #3048lxhParticipantSome of the errors:
1 IntelliSense: inline specifier allowed on function declarations only c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 580 3 2 IntelliSense: declaration is incompatible with function template "_Tp std::__complex_abs(const std::complex<_tp> &__z)" (declared at line 567) c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 581 3
3 IntelliSense: identifier "__complex__" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 581 17
4 IntelliSense: expected a ')' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 581 29
5 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 581 40
6 IntelliSense: _Norm_helper is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 644 12
7 IntelliSense: inline specifier allowed on function declarations only c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 685 3
8 IntelliSense: explicit type is missing ('int' assumed) c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 685 10
9 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 685 22
10 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1191 12
11 IntelliSense: explicit type is missing ('int' assumed) c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1194 15
12 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1194 27
13 IntelliSense: explicit type is missing ('int' assumed) c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1196 26
14 IntelliSense: identifier "_ComplexT" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1196 34
15 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1196 49
16 IntelliSense: function "::complex" is not a type name c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1246 7
17 IntelliSense: function "::complex" is not a type name c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1253 7
18 IntelliSense: function "::complex" is not a type name c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1260 7
19 IntelliSense: function "::complex" is not a type name c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1267 7
20 IntelliSense: function "::complex" is not a type name c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1274 7
21 IntelliSense: identifier "_ComplexT" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1333 30
22 IntelliSense: identifier "_ComplexT" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1336 7
23 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1342 12
24 IntelliSense: explicit type is missing ('int' assumed) c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1345 15
25 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1345 27
26 IntelliSense: explicit type is missing ('int' assumed) c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1347 26
27 IntelliSense: identifier "_ComplexT" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1347 34
28 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1347 49
29 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1495 3
30 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1495 33
31 IntelliSense: expected a declaration c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1496 3
32 IntelliSense: identifier "ostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1511 19
33 IntelliSense: identifier "ostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1511 39
34 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1511 55
35 IntelliSense: identifier "istream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1512 19
36 IntelliSense: identifier "istream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1512 39
37 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1512 49
38 IntelliSense: identifier "ostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1513 19
39 IntelliSense: identifier "ostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1513 39
40 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1513 55
41 IntelliSense: identifier "istream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1514 19
42 IntelliSense: identifier "istream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1514 39
43 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1514 49
44 IntelliSense: identifier "ostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1515 19
45 IntelliSense: identifier "ostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1515 39
46 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1515 55
47 IntelliSense: identifier "wistream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1518 19
48 IntelliSense: identifier "wistream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1518 40
49 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1518 51
50 IntelliSense: identifier "wostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1519 19
51 IntelliSense: identifier "wostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1519 40
52 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1519 57
53 IntelliSense: identifier "wistream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1520 19
54 IntelliSense: identifier "wistream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1520 40
55 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1520 51
56 IntelliSense: identifier "wostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1521 19
57 IntelliSense: identifier "wostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1521 40
58 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1521 57
59 IntelliSense: identifier "wistream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1522 19
60 IntelliSense: identifier "wistream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1522 40
61 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1522 51
62 IntelliSense: identifier "wostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1523 19
63 IntelliSense: identifier "wostream" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1523 40
64 IntelliSense: complex is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1523 57
65 IntelliSense: expected a declaration c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1530 1
66 IntelliSense: expected a declaration c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1556 5
67 IntelliSense: expected a declaration c:sysgccraspberryarm-linux-gnueabihfincludec++4.6complex 1559 1
68 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 143 17
69 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 144 22
70 IntelliSense: identifier "__x" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 144 42
71 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 144 47
72 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 146 23
73 IntelliSense: declaration is incompatible with "*_Rb_tree_increment" (declared at line 144) c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 147 3
74 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 147 28
75 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 149 17
76 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 150 22
77 IntelliSense: identifier "__x" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 150 42
78 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 150 47
79 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 152 23
80 IntelliSense: declaration is incompatible with "*_Rb_tree_decrement" (declared at line 150) c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 153 3
81 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 153 28
82 IntelliSense: incomplete type is not allowed c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 320 3
83 IntelliSense: type name is not allowed c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 320 33
84 IntelliSense: expected a ')' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 320 44
85 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 323 63
86 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 325 3
87 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 326 32
88 IntelliSense: type name is not allowed c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 326 52
89 IntelliSense: expected a ')' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 326 58
90 IntelliSense: expected a ';' c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 327 41
91 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 1567 30
92 IntelliSense: identifier "_Rb_tree_node_base" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 1568 30
93 IntelliSense: expected a declaration c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_tree.h 1609 1
94 IntelliSense: explicit type is missing ('int' assumed) c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_map.h 113 2
95 IntelliSense: identifier "_Compare" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_map.h 113 16
96 IntelliSense: expected a declaration c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_map.h 114 2
97 IntelliSense: expected a declaration c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_map.h 121 5
98 IntelliSense: identifier "key_type" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_map.h 126 24
99 IntelliSense: identifier "value_type" is undefined c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_map.h 126 34
100 IntelliSense: _Select1st is not a template c:sysgccraspberryarm-linux-gnueabihfincludec++4.6bitsstl_map.h 126 46April 28, 2014 at 03:18 #3050supportKeymasterHi,
Visual Studio 2010 has very limited support for C++1x, so IntelliSense errors are fully expected in this case. On a long term we are working on resolving this by providing an independent IntelliSense engine. On a short term you may be able to work around it by undefining some of the C++1x defines for IntelliSense:
#ifdef _MSC_VER
#undef …
#endifThe list of C++1x-specific defines can be found by comparing gcc_Debug.h before/after enabling C++1x support.
April 30, 2014 at 15:48 #3049lxhParticipantThanks, I added
#ifdef _MSC_VER #undef __GXX_EXPERIMENTAL_CXX0X__ #undef __STRICT_ANSI__ #endif
(just above the section that starts with // — Include directories begin — //), and that seems to work
-
AuthorPosts
- You must be logged in to reply to this topic.