diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..a6e08f8 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug current C file", + "type": "cppdbg", + "request": "launch", + "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe", + "preLaunchTask": "C/C++: gcc.exe build active file" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..732bf1f --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,49 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build C file", + "type": "shell", + "command": "gcc", + "args": [ + "-g", + "${fileBasename}", + "-o", + "${fileBasenameNoExtension}.exe" + ], + "options": { + "cwd": "${fileDirname}" + }, + "group": { + "kind": "build", + "isDefault": false + }, + "problemMatcher": [ + "$gcc" + ] + }, + { + "type": "cppbuild", + "label": "C/C++: gcc.exe build active file", + "command": "C:\\msys64\\mingw64\\bin\\gcc.exe", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${fileDirname}\\${fileBasenameNoExtension}.exe" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "Task generated by Debugger." + } + ] +} diff --git a/Start_Windows/test.c b/Start_Windows/test.c new file mode 100644 index 0000000..4e1d343 --- /dev/null +++ b/Start_Windows/test.c @@ -0,0 +1,6 @@ +#include + +int main(){ + printf("Hello Patric \n"); + return 0; +} \ No newline at end of file