Win7 (32bit) VSCode (1.70.2)
I am learning VSCode (not Visual Studio) by rewriting some of my programs in C, and I'd like to make my own library with my own functions.
Is there a good tutorial on this subject?
Or can someone at least outline the steps so I can do further searching on the internet?
Thanks, Mark.
I think there are 2 parts to this:
Writing your own C-library.
Integrating your custom C-library in VSCode with things like build toolchain, Intellisense, debugging etc.
VSCode is an Integrated Development Environment (IDE), a tool that enables you to write code in any language. The actual source code doesn't care what IDE you use (it could just be a text editor) but IDE's have many added features that make code writing more enjoyable and efficient.
For 1. You could look into some resources like https://diveintosystems.org/book/C2-C_depth/advanced_writing_libraries.html which will go over how to set up and link your custom library.
For 2. you mostly just need to tell VSCode the include path for your library and it should more or less just work. See here: https://code.visualstudio.com/docs/editor/intellisense for example. The reference provided for part 1. also has a section on compiling/linking.