To me (a beginner in C) it looks like a program can magically access external libraries just by declaring #include "something.h"
at the top of a C source file. How is it done?
I want to use the POSIX library (unistd.h). I've got the header file itself and a couple of dll's, but I can't link them together and get the compiler (GCC MinGW) to find the dll's.
What's a good tutorial on how to generate and link dll's, and how to connect dll's with C headers, and stuff like that?