Perhaps someone can tell me how to figure out what libraries I need to link with when using certain parts of CommonC++?
More to the point, how can I tell what specific library to link with for any project involving thrid-party libraries where I'm only using a part of the functionality the development package provides or need to figure out what other libraries to link with to support dependencies of the library I'm linking with?
I'm new to doing development using third-party libraries so this would be very helpful.
I have been doing something like:
nm -o `ls /lib` 2>/dev/null | grep "symbol-name"
to find possible libraries to link with. Is there an easier way?
Thanks,
Kevin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Perhaps someone can tell me how to figure out what libraries I need to link with when using certain parts of CommonC++?
More to the point, how can I tell what specific library to link with for any project involving thrid-party libraries where I'm only using a part of the functionality the development package provides or need to figure out what other libraries to link with to support dependencies of the library I'm linking with?
I'm new to doing development using third-party libraries so this would be very helpful.
I have been doing something like:
nm -o `ls /lib` 2>/dev/null | grep "symbol-name"
to find possible libraries to link with. Is there an easier way?
Thanks,
Kevin
The "ccgnu-config" script can be used to report the correct compile flags and link options for your application.