Hide visibility of sinqController classes
This commit is contained in:
14
README.md
14
README.md
@@ -309,4 +309,16 @@ If your driver uses another driver as a static dependency via git submodule whic
|
||||
- `git commit -m "Update turboPmac to 1.0"`
|
||||
- `git submodule update --init --recursive`
|
||||
|
||||
This will update sinqMotor to the version specified in the 1.0 commit of turboPmac.
|
||||
This will update sinqMotor to the version specified in the 1.0 commit of turboPmac.
|
||||
|
||||
### Exporting symbols
|
||||
|
||||
By default, the symbols of classes and functions are hidden to avoid symbol clashes when loading
|
||||
multiple shared libraries which use `sinqMotor`. In order to compile this library with exported
|
||||
symbols, specifiy `-DHIDDEN= ` as a compiler flag (if using the given Makefile, this
|
||||
needs to be added to the `USR_CFLAGS`).
|
||||
|
||||
Derived libraries can use the same mechanism via the macro `HIDDEN` (defined in `msgPrintControl.h`):
|
||||
```
|
||||
class HIDDEN turboPmacController : public sinqController
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user