From d5c7f69df978dfacdf393e4fa669dbb96a8cdec8 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 27 May 2022 18:25:19 +0800 Subject: [PATCH] first --- .vscode/c_cpp_properties.json | 21 +++++++++++++++++++++ .vscode/settings.json | 10 ++++++++++ cmake_usage/src/main.cpp | 2 +- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/settings.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..2d28fae --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,21 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "_UNICODE" + ], + "compilerPath": "C:\\cygwin64\\bin\\gcc.exe", + "cStandard": "gnu17", + "cppStandard": "gnu++17", + "intelliSenseMode": "linux-gcc-x64", + "compileCommands": "${workspaceFolder}/cmake_lib/build/compile_commands.json" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..db54e5e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "files.associations": { + "atomic": "cpp", + "*.tcc": "cpp", + "compare": "cpp", + "numeric": "cpp", + "cmath": "cpp", + "iostream": "cpp" + } +} \ No newline at end of file diff --git a/cmake_usage/src/main.cpp b/cmake_usage/src/main.cpp index d5dce12..3bf68dc 100644 --- a/cmake_usage/src/main.cpp +++ b/cmake_usage/src/main.cpp @@ -1,7 +1,7 @@ #include #include "add.h" #include "sub.h" - +using namespace std; int main (int, char **) { std::cout << "Hello, world!\n";