Skip to content

Commit 3f330fc

Browse files
authored
Update MinGW paths to 6.3.0.
As the latest recommended version of MinGW is 6.3.0 and MinGW strongly discourages using old versions, I think it's appropriate to update the version numbers for this file and add a notice informing users that they may have to change the MinGW file path to match their version.
1 parent 04f37da commit 3f330fc

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Documentation/LanguageServer/MinGW.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
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.
22

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+
35
```
46
{
57
"configurations": [
@@ -8,12 +10,12 @@ For developers using MinGW on Windows, we recommend you start with the following
810
"intelliSenseMode": "clang-x64",
911
"includePath": [
1012
"${workspaceRoot}",
11-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include/c++",
12-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include/c++/mingw32",
13-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include/c++/backward",
14-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include",
13+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++",
14+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32",
15+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/backward",
16+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include",
1517
"C:/MinGW/include",
16-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include-fixed"
18+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed"
1719
],
1820
"defines": [
1921
"_DEBUG",
@@ -23,8 +25,8 @@ For developers using MinGW on Windows, we recommend you start with the following
2325
],
2426
"browse": {
2527
"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",
2830
"C:/MinGW/include/*"
2931
],
3032
"limitSymbolsToIncludedHeaders": true,
@@ -35,7 +37,7 @@ For developers using MinGW on Windows, we recommend you start with the following
3537
}
3638
```
3739

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).
3941

4042
For C projects, simply remove the c++ lines:
4143

@@ -47,9 +49,9 @@ For C projects, simply remove the c++ lines:
4749
"intelliSenseMode": "clang-x64",
4850
"includePath": [
4951
"${workspaceRoot}",
50-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include",
52+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include",
5153
"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"
5355
],
5456
"defines": [
5557
"_DEBUG",
@@ -59,8 +61,8 @@ For C projects, simply remove the c++ lines:
5961
],
6062
"browse": {
6163
"path": [
62-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include",
63-
"C:/MinGW/lib/gcc/mingw32/5.3.0/include-fixed",
64+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include",
65+
"C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed",
6466
"C:/MinGW/include/*"
6567
],
6668
"limitSymbolsToIncludedHeaders": true,

0 commit comments

Comments
 (0)