Only one version of the library can be running at a time.
If you create a C program and link with -lpigpio that program will become the pigpio daemon when run. Other programs will have to talk via the daemon interface.
For Python that is handled by importing the pigpio module. A C program needs to use the pigpiod_if2 interface.