{"id":26274145,"url":"https://github.com/gjtiquia/hello-world-cpp","last_synced_at":"2026-04-13T12:01:20.101Z","repository":{"id":266157294,"uuid":"897567125","full_name":"gjtiquia/hello-world-cpp","owner":"gjtiquia","description":"A short documentation on how to setup, compile and run C++ properly on Linux.","archived":false,"fork":false,"pushed_at":"2024-12-02T23:40:01.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T10:42:49.984Z","etag":null,"topics":["cpp","linux"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gjtiquia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-02T21:14:27.000Z","updated_at":"2024-12-02T23:40:05.000Z","dependencies_parsed_at":"2024-12-02T22:34:50.419Z","dependency_job_id":null,"html_url":"https://github.com/gjtiquia/hello-world-cpp","commit_stats":null,"previous_names":["gjtiquia/hello-world-cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gjtiquia/hello-world-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjtiquia%2Fhello-world-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjtiquia%2Fhello-world-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjtiquia%2Fhello-world-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjtiquia%2Fhello-world-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gjtiquia","download_url":"https://codeload.github.com/gjtiquia/hello-world-cpp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjtiquia%2Fhello-world-cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31751705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp","linux"],"created_at":"2025-03-14T09:18:15.263Z","updated_at":"2026-04-13T12:01:20.084Z","avatar_url":"https://github.com/gjtiquia.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello World C++\n\nA short documentation on how to setup, compile and run C++ properly on Linux.\n\n## Prerequisites\n\nHave `build-essential` installed\n\n```bash\nsudo apt update \u0026\u0026 sudo apt install build-essential\n```\n\nThis installs necessary packages such as `g++` for compiling C++ source files.\n\n## Build - Using bash script\n\nRun `build.sh` to compile `main.cpp` into a Linux executable `main`\n\u003e Note: You will need a cross compiler to compile for other platforms, such as using `mingw-w64` to compile for Windows. Another option would be to compile directly on the target machine.\n\nOption 1:\n```bash\nbash build.sh\n```\n\nOption 2:\n- First give execute permissions\n```bash\nchmod +x build.sh\n```\n- Then run the script\n```bash\n./build.sh\n```\n\n## Build - Using g++\n\nThe bash script is written because i dun wanna type so many characters everytime i wanna build lol. Also prevents typos. I also dun needa remember all the commands if i just needa remember `bash build.sh`. Also allows the build step to change while i just needa remember one command.\n\nBut yeah, at least at this stage u can just build directly using\n```bash\ng++ main.cpp -o main\n```\n\n## Execute\n\nRun \n```bash\n./main\n```\n\nYou should see the following output:\n```txt\nHello World!\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjtiquia%2Fhello-world-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgjtiquia%2Fhello-world-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjtiquia%2Fhello-world-cpp/lists"}