diff --git a/.gitignore b/.gitignore index 330f036..01f9cb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -main.exe -.vscode/settings.json \ No newline at end of file +build/ +.vscode/ \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index f053bbe..c893478 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,7 +4,7 @@ "name": "C/C++: Debug", "type": "cppdbg", "request": "launch", - "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", + "program": "${fileDirname}\\build\\${fileBasenameNoExtension}.exe", "args": [], "stopAtEntry": false, "cwd": "${fileDirname}", @@ -30,7 +30,7 @@ "name": "C/C++: Release", "type": "cppdbg", "request": "launch", - "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", + "program": "${fileDirname}\\build\\${fileBasenameNoExtension}.exe", "args": [], "stopAtEntry": false, "cwd": "${fileDirname}", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1806133..ef2b39c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -11,7 +11,7 @@ "-pedantic-errors", "${file}", "-o", - "${fileDirname}\\${fileBasenameNoExtension}.exe" + "${fileDirname}\\build\\${fileBasenameNoExtension}.exe" ], "options": { "cwd": "${fileDirname}" @@ -32,7 +32,7 @@ "-pedantic-errors", "${file}", "-o", - "${fileDirname}\\${fileBasenameNoExtension}.exe" + "${fileDirname}\\build\\${fileBasenameNoExtension}.exe" ], "options": { "cwd": "${fileDirname}" diff --git a/dot vscode/c_cpp_properties.json b/dot vscode/c_cpp_properties.json new file mode 100644 index 0000000..a09e6ca --- /dev/null +++ b/dot vscode/c_cpp_properties.json @@ -0,0 +1,20 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "_UNICODE" + ], + "compilerPath": "C:\\msys64\\mingw64\\bin\\gcc.exe", + "cStandard": "c17", + "cppStandard": "gnu++20", + "intelliSenseMode": "windows-gcc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/dot vscode/launch.json b/dot vscode/launch.json new file mode 100644 index 0000000..c893478 --- /dev/null +++ b/dot vscode/launch.json @@ -0,0 +1,57 @@ +{ + "configurations": [ + { + "name": "C/C++: Debug", + "type": "cppdbg", + "request": "launch", + "program": "${fileDirname}\\build\\${fileBasenameNoExtension}.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe", + "setupCommands": [ + { + "description": "Automatische Strukturierung und Einrückung für \"gdb\" aktivieren", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Disassemblierungsvariante auf Intel festlegen", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ], + "preLaunchTask": "Debug" + }, + { + "name": "C/C++: Release", + "type": "cppdbg", + "request": "launch", + "program": "${fileDirname}\\build\\${fileBasenameNoExtension}.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe", + "setupCommands": [ + { + "description": "Automatische Strukturierung und Einrückung für \"gdb\" aktivieren", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Disassemblierungsvariante auf Intel festlegen", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ], + "preLaunchTask": "Release" + } + ], + "version": "2.0.0" +} diff --git a/dot vscode/tasks.json b/dot vscode/tasks.json new file mode 100644 index 0000000..ef2b39c --- /dev/null +++ b/dot vscode/tasks.json @@ -0,0 +1,46 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "Debug", + "command": "C:\\msys64\\mingw64\\bin\\g++.exe", + "args": [ + "-fdiagnostics-color=always", + "-ggdb", + "-std=c++20", + "-pedantic-errors", + "${file}", + "-o", + "${fileDirname}\\build\\${fileBasenameNoExtension}.exe" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": ["$gcc"], + "group": "build", + "detail": "Vom Debugger generierte Aufgabe." + }, + { + "type": "cppbuild", + "label": "Release", + "command": "C:\\msys64\\mingw64\\bin\\g++.exe", + "args": [ + "-fdiagnostics-color=always", + "-O2", + "-DNDEBUG", + "-std=c++20", + "-pedantic-errors", + "${file}", + "-o", + "${fileDirname}\\build\\${fileBasenameNoExtension}.exe" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": ["$gcc"], + "group": "build", + "detail": "Vom Debugger generierte Aufgabe." + } + ], + "version": "2.0.0" +} diff --git a/main.exe b/main.exe new file mode 100644 index 0000000..8c18bb5 Binary files /dev/null and b/main.exe differ