2 ms·
You don't need special compiler options to use a shared object. If you got it as a binary, there is nothing to compile. The incomplete information in header fi
by kazinator 9y ago
You don't need special compiler options to use a shared object. If you got it as a binary, there is nothing to compile.
The incomplete information in header files isn't the compiler command line options, but the nuances of the API semantics. Like if a structure is passed and the structure contains pointers. Who owns the structure and must free it? Who owns the pointers inside it? Oooh, here is a functional argument: what parts of the API can be safely invoked from that callback? That size argument, is that bytes or array elements? And so on.
- Firadeoclus 9y ago> You don't need special compiler options to use a shared object. If you got it as a binary, there is nothing to compile. I was referring to the header file. Unfortunately, with C/C++ you need compile options to fully interpret source code. > The incomplete information in header files isn't the compiler command line options, but the nuances of the API semantics. No doubt there's much more to API semantics than basic type information. But the latter is still valuable.