Replies: 1 comment
-
This issue sounds similar to #9338 to you might try the solution in that issue, but in your case you're using a different compiler. I'm not familiar with using mingw to build on Linux for Windows, so I'm not sure if that even works or how it should be configured. You can run C/C++: Log Diagnostics to see what configuration is currently being used. If your compiler is supposed to compiling as cl.exe does then you'd want to make sure the intelliSenseMode is windows-msvc-x64 and set the compilerPath to "" so it doesn't try quering the compiler for system defines/includes and manually add the system includes. @Colengms might know more. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
I'm trying to write a simple program in C++ that will run on a windows machine. I run Linux as a daily and don't often develop for windows, so I am trying to cross compile using the mingw-w64 toolchain. The problem I'm running into is how to configure VSCode for the task. Here is my current setup.
Problem
Given the setup below, when I try to include something like
<windows.h>
I get this errorSetup
cpp extension settings
Workspace setup
Other details
VSCode info
Version: 1.66.2
Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977
Date: 2022-04-11T07:49:24.808Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Linux x64 5.17.4-1-default
Extension list
Beta Was this translation helpful? Give feedback.
All reactions