I am trying to develop a library file that will be self-contained as much as possible...
so far, the only EXTERNAL reference I need to make is to a generic structure which would be defined in whichever main program is using the library...
From within my proj_lib.h file, I am declaring this struct as extern, like so:
// standard includes, misc code...
This is not working though...
extern struct Options opt_obj;
I am trying to make this as 'pluggable' as possible, so that if I want to use this library in various programs, all I would need to do would be to #include it from within my main program header and create a struct object for it to utilize...
can this be done, or is there a better way of doing it?