You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/LanguageServer/MinGW.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
For developers using MinGW on Windows, we recommend you start with the following **c_cpp_properties.json** template. Select "C/Cpp: Edit Configurations" from the command palette to create this file if you haven't already.
2
2
3
+
Note that you may have to change the MinGW version number to match what you have installed. Eg. `C:/MinGW/lib/gcc/mingw32/5.3.0/` to `C:/MinGW/lib/gcc/mingw32/x.x.x/`.
4
+
3
5
```
4
6
{
5
7
"configurations": [
@@ -8,12 +10,12 @@ For developers using MinGW on Windows, we recommend you start with the following
@@ -23,8 +25,8 @@ For developers using MinGW on Windows, we recommend you start with the following
23
25
],
24
26
"browse": {
25
27
"path": [
26
-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include",
27
-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include-fixed",
28
+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include",
29
+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed",
28
30
"C:/MinGW/include/*"
29
31
],
30
32
"limitSymbolsToIncludedHeaders": true,
@@ -35,7 +37,7 @@ For developers using MinGW on Windows, we recommend you start with the following
35
37
}
36
38
```
37
39
38
-
The `includePath` above includes the system header paths that gcc uses in version 5.3.0 for C++ projects and matches the output of `gcc -v -E -x c++ -`. The `intelliSenseMode` should be set to **"clang-x64"** to get MinGW projects to work properly with IntelliSense. The `__GNUC__=#` define should match the major version of the toolchain in your installation (5 in this example).
40
+
The `includePath` above includes the system header paths that gcc uses in version 6.3.0 for C++ projects and matches the output of `gcc -v -E -x c++ -`. The `intelliSenseMode` should be set to **"clang-x64"** to get MinGW projects to work properly with IntelliSense. The `__GNUC__=#` define should match the major version of the toolchain in your installation (5 in this example).
39
41
40
42
For C projects, simply remove the c++ lines:
41
43
@@ -47,9 +49,9 @@ For C projects, simply remove the c++ lines:
47
49
"intelliSenseMode": "clang-x64",
48
50
"includePath": [
49
51
"${workspaceRoot}",
50
-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include",
52
+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include",
51
53
"C:/MinGW/include",
52
-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include-fixed"
54
+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed"
53
55
],
54
56
"defines": [
55
57
"_DEBUG",
@@ -59,8 +61,8 @@ For C projects, simply remove the c++ lines:
0 commit comments