diff --git a/td6.md b/td6.md index b902614..c2e3d1a 100644 --- a/td6.md +++ b/td6.md @@ -133,6 +133,9 @@ mvprintw(3, 5, "Nom : "); getstr(nom); ``` + + + fichier tasks.json ```json @@ -140,15 +143,17 @@ fichier tasks.json "version": "2.0.0", "tasks": [ { - "label": "build banque", - "type": "shell", - "command": "gcc", + "label": "C/C++: gcc.exe build active file", + "type": "cppbuild", + "command": "C:\\msys64\\ucrt64\\bin\\gcc.exe", "args": [ - "banque.c", - "-g", // inclut les symboles de debug - "-lncurses", // lie la bibliothèque ncurses + "-fdiagnostics-color=always", + "-g", + "${file}", + "-lncurses", + "-DNCURSES_STATIC", "-o", - "banque" + "${fileDirname}\\${fileBasenameNoExtension}.exe" ], "group": { "kind": "build", @@ -160,33 +165,3 @@ fichier tasks.json ] } ``` - -fichier settings.json - -```json -{ - "version": "0.2.0", - "configurations": [ - { - "name": "Debug Banque (ncurses)", - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/banque", - "args": [], - "stopAtEntry": false, - "cwd": "${workspaceFolder}", - "environment": [], - "externalConsole": true, - "MIMode": "gdb", - "miDebuggerPath": "/usr/bin/gdb", - "preLaunchTask": "build banque", - "setupCommands": [ - { - "description": "Activer l'impression pretty", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ] - } -} -```