{"id":16199907,"url":"https://github.com/agateau/quickcpp","last_synced_at":"2026-02-04T03:31:20.690Z","repository":{"id":57459400,"uuid":"385053097","full_name":"agateau/quickcpp","owner":"agateau","description":"Command-line tool to quickly build and run a single C++ file. Handy for quick experimentations","archived":false,"fork":false,"pushed_at":"2021-07-11T21:22:35.000Z","size":26,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T08:59:15.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agateau.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-11T21:12:53.000Z","updated_at":"2021-07-13T19:45:56.000Z","dependencies_parsed_at":"2022-09-10T15:41:28.174Z","dependency_job_id":null,"html_url":"https://github.com/agateau/quickcpp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/agateau/quickcpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agateau%2Fquickcpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agateau%2Fquickcpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agateau%2Fquickcpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agateau%2Fquickcpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agateau","download_url":"https://codeload.github.com/agateau/quickcpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agateau%2Fquickcpp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264284356,"owners_count":23584675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T09:28:40.169Z","updated_at":"2026-02-04T03:31:15.653Z","avatar_url":"https://github.com/agateau.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quickcpp\n\n`quickcpp` is a small command-line tool to quickly build and run a single C++ file. Handy for quick experimentations.\n\n## Usage\n\nThe simplest usage is `quickcpp \u003cpath/to/some/cppfile\u003e`. When called like this, `quickcpp` builds the file (producing a `a.out` file) and runs the result.\n\n```\n$ cat examples/helloworld.cpp \n#include \u003ciostream\u003e\n\nint main(int argc, char** argv) {\n    std::cout \u003c\u003c \"Hello world!\\n\";\n    return 0;\n}\n\n$ quickcpp examples/helloworld.cpp \n- Building ---------------------\nc++ examples/helloworld.cpp -Wall -fPIC -std=c++17 -g\n- Running ----------------------\nHello world!\n```\n\n### Using other libraries\n\nWant to experiment something with [QtWidgets][]? You can specify any installed pkg-config compliant packages using `-p \u003cpackage\u003e`:\n\n[QtWidgets]: https://doc.qt.io/qt-5.15/qtwidgets-index.html\n\n```\n$ cat examples/qt.cpp \n#include \u003cQApplication\u003e\n#include \u003cQMainWindow\u003e\n\nint main(int argc, char** argv) {\n    QApplication app(argc, argv);\n\n    QMainWindow window;\n    window.setWindowTitle(\"Hello World\");\n    window.show();\n\n    return app.exec();\n}\n\n$ quickcpp -p Qt5Widgets examples/qt.cpp \n- Building ---------------------\nc++ examples/qt.cpp -Wall -fPIC -std=c++17 -g -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -lQt5Widgets -lQt5Gui -lQt5Core\n- Running ----------------------\n```\n\nYou should see a window like this one:\n\n![qt.png](examples/qt.png)\n\nAny package listed by `pkg-config --list-all` can be used by `quickcpp`.\n\n### Live reload\n\n`quickcpp` can use [entr](http://entrproject.org/) to automatically rebuild and rerun your file. Just install `entr` and run `quickcpp` with the `-l` flag.\n\n## Installation\n\nThe recommended solution is to use [pipx][]:\n\n```\npipx install quickcpp\n```\n\n[pipx]: https://github.com/pipxproject/pipx\n\nBut you can also install it with `pip`:\n\n```\npip install --user quickcpp\n```\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagateau%2Fquickcpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagateau%2Fquickcpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagateau%2Fquickcpp/lists"}