前言
最近在玩 C language
想着以后要是 web 不做了的话,可以去做跟 Linux 有关的
还有 Jetbrains 全家桶真的好用XDDD
Executable & Library
这是在自己做练习的时候,从 IDE 内新增专案的时候看到的
想说到底有什么区别,找了一下找到 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