NI-488.2 for Linux includes libni4882.so, a dynamic library you can use from your C/C++ applications.
NI-488.2 for macOS includes the NI4882.framework for this purpose.
For more information about developing your application, refer to NI-488.2 Language Interface Files.