I don’t know C, but need to interact with some C files in a project. I’m noticing that some files have .lib extension, while others (which are also supposed to be libraries) have .c and .h files only in a big folder.
- What’s the difference between these libraries.
- Are the
.cand.hfolders also libraries. - Is the
.libformat the official format for libraries and these guys who did.cand.hjust lazy or not using best practice?
.cand.hfiles are source code, i.e., text files. In order to “use” them (i.e., execute the code on a computer) you need to compile them into…a
.libfile is the end result, i.e., a binary file. It can be statically lined into another executable and the code run on a computer. This saves you the time of compiling the source if you don’t need to..libis just one common extension, but it doesn’t really matter what the extension is as long as the file is valid. Point your compiler/linker to the.whateverlibrary file and let ‘er rip, it will all work out in the end.