When I use pkg-config –libs , the output contains many references to libraries. However, some of these libs do NOT have the “-l” in front of them so the linker does not know what to do with the name. For example, I will get the output: stdc++ instead of -lstdc++
What would cause pkg-config to do this?
Also, where does pkg-config get its information? The man page says it uses .ps files in the “prefix” directory. But where are these prefix directories?
-Andres
The
$PKG_CONFIG_PATHcan be set for additional paths to search for*.pcfiles. You can query the default paths with:The
--libsoutput is determined by theLibs:line in the.pcfile; usually with something like:Perhaps the
.pcfile you are referencing is not correctly constructed?