- Create
.vscode
directory into your workspace - Create
tasks.json
file (below) into that directory - Add the following parameters into
tasks.json
{ "tasks": [ { "type": "cppbuild", "label": "C/C++: g++.exe build active file", "command": "C:\\msys64\\mingw64\\bin\\g++.exe", "args": [ "-fdiagnostics-color=always", "-g", /** Input files **/ "${workspaceFolder}\\*.cpp", "${workspaceFolder}\\bp_tree\\*.cpp", "${workspaceFolder}\\bp_tree\\*.h", "${workspaceFolder}\\storage\\*.cpp", "${workspaceFolder}\\storage\\*.h", "-o", /** Output file **/ "${workspaceFolder}\\output.exe" // default is "${fileDirname}\\${fileBasenameNoExtension}.exe" ], "options": { "cwd": "${fileDirname}" }, "problemMatcher": ["$gcc"], "group": { "kind": "build", "isDefault": true }, "detail": "Task generated by Debugger." } ], "version": "2.0.0" }
- Check the line
"command": "C:\\msys64\\mingw64\\bin\\g++.exe"
. Provide the path to your g++ here. - At the top row of buttons in VSCode, click Terminal -> Run Build Task (or do Ctrl + Shift + B)
- There should be an
output.exe
file in your workspace - In the terminal, type
./output
and press Enter to run the executable
-
Notifications
You must be signed in to change notification settings - Fork 1
jimmysqqr/cz4031-database-system-principles-assg1
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published