Skip to content

Include file not found under Win32 and MinGW #381

@wuqiling97

Description

@wuqiling97

When using vscode version 1.7.2 and cpptool 0.9.2 with the following include headers:

#include <iostream>
#include <chrono>
#include <stdio.h>
#include <cstdlib>

and settings in "c_cpp_properties.json":

        {
            "name": "Win32",
            "includePath": ["c:/MinGW/lib/gcc/mingw32/5.3.0/include", "C:/MinGW/include"],
            "browse" : {
                "limitSymbolsToIncludedHeaders" : true,
                "databaseFilename" : ""
            }
        }

I still got green squiggles under those headers. However, these c++ code worked fine in another directory without "c_cpp_properties.json", and vscode will take me to "Microsoft Visual Studio 14.0\VC\include" when I ctrl+click on these headers.

Could someone figure it out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions