{"id":25208229,"url":"https://github.com/1010code/make-cpp-library","last_synced_at":"2026-01-19T04:02:01.205Z","repository":{"id":118676457,"uuid":"536146298","full_name":"1010code/make-cpp-library","owner":"1010code","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-04T01:00:16.000Z","size":280,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T04:20:28.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","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/1010code.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}},"created_at":"2022-09-13T13:44:29.000Z","updated_at":"2023-11-24T12:44:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"15597374-8646-4fb6-8002-20193ed887d0","html_url":"https://github.com/1010code/make-cpp-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/1010code/make-cpp-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1010code","download_url":"https://codeload.github.com/1010code/make-cpp-library/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1010code%2Fmake-cpp-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28561623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"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":[],"created_at":"2025-02-10T12:19:08.241Z","updated_at":"2026-01-19T04:02:01.190Z","avatar_url":"https://github.com/1010code.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 靜態庫和動態庫的構建\r\n\r\n```sh\r\ncd mylib-library/\r\nmkdir build\r\ncd build\r\ncmake ..\r\nmake\r\nsudo make install\r\ncd ../../\r\ncp mylib-library/build/bin/libmylib.so release/mylib-linux-aarch64/lib/\r\n```\r\n\r\n```sh\r\ng++ -o main ./main.cpp -I release/mylib-linux-aarch64/include -L release/mylib-linux-aarch64/lib -lmylib -std=c++11\r\n```\r\n\r\n\r\n現在庫已經編寫完成，要如何使用呢？一種方法是使用 make install，另一種方法是提供設定文件，例如 mylib-config.cmake，後者需要透過 .cmake.in 文件生成，可以參考下一個進階教學[make-cpp-library-advance](https://github.com/1010code/make-cpp-library-advance)。\r\n\r\n## Reference\r\n- [動態連結資料庫](https://jasonblog.github.io/note/linked_and_loader/linux_dong_tai_lian_jie_zi_liao_ku.html)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1010code%2Fmake-cpp-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1010code%2Fmake-cpp-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1010code%2Fmake-cpp-library/lists"}