Linker Error: 'skipping incompatible /opt/hp4070/lib/libgpib.so' - How to Fix
This is an error message that typically appears when the linker (ld) is unable to locate a compatible version of the library needed for the compilation process. In this case, it is looking for the library 'libgpib.so' and is skipping the version that is installed in the '/opt/hp4070/lib' directory because it is incompatible.
To resolve this issue, you may need to install a compatible version of the library or update the path to point to the correct version of the library. You can also try specifying the library path using the 'LD_LIBRARY_PATH' environment variable before running the compilation command. For example:
$ export LD_LIBRARY_PATH='/path/to/library' $ gcc -o myprogram myprogram.c -lgpib
Make sure to replace '/path/to/library' with the actual path to the directory containing the correct version of the library.
原文地址: https://www.cveoy.top/t/topic/ouEM 著作权归作者所有。请勿转载和采集!