C - Executable 及 Library 的差别

前言

最近在玩 C language
想着以后要是 web 不做了的话,可以去做跟 Linux 有关的
还有 Jetbrains 全家桶真的好用XDDD

Executable & Library

这是在自己做练习的时候,从 IDE 内新增专案的时候看到的
http://img2.58codes.com/2024/20118878DbYpYS8Og2.png
想说到底有什么区别,找了一下找到 Stack overflow 上有人解说

If you're building a self standing program, you'll want an executable.But you might be building a library of functions/classes that provide utility to someone else or another project. In that case you'll want other programs to be able to link against the library to access those functions/classes, either statically - to compile the library into their project - or dynamically to fetch stuff the library at runtime.

大意就是 Executable 是做唯一个独立的执行档使用的
Library 是在做一些独立的函式库才会使用到

参考

https://stackoverflow.com/questions/67671247/clion-c-executable-vs-c-library


关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章