microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.72k stars 1.4k forks source link

GCC or Clang does not build #1440

Open thirdknife opened 2 years ago

thirdknife commented 2 years ago

Steps to Reproduce:

  1. Run https://github.com/SpaceCog/Modern-CPP-Programming-Cookbook-Second-Edition in Code Space and build using Cmake.
  2. Building generates many repetitive errors. Some are as follows:
    [{
    "resource": "/usr/include/x86_64-linux-gnu/bits/floatn-common.h",
    "owner": "cmake-build-diags",
    "severity": 8,
    "message": "token is not a valid binary operator in a preprocessor subexpression",
    "source": "GCC",
    "startLineNumber": 271,
    "startColumn": 22,
    "endLineNumber": 271,
    "endColumn": 1000
    }]
    [{
    "resource": "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h",
    "owner": "cmake-build-diags",
    "severity": 8,
    "message": "function-like macro '__GLIBC_USE' is not defined",
    "source": "GCC",
    "startLineNumber": 73,
    "startColumn": 5,
    "endLineNumber": 73,
    "endColumn": 1000
    }]
bamurtaugh commented 2 years ago

cc @joshspicer @edgonmsft