Daniel Molina Wegener <dm****************@coder.clwrites:
onkar <on*******@gmail.com>
on Saturday 16 August 2008 04:25
wrote in comp.lang.c:
>I have compiled the code with lots of libraries (some of which might
not be required in the code at all !) I want to know which function
is in which library . How do I get info about the function (i.e., it
belong to which library ) from the exe of my compiled code ?
Try ldd(1) to verify which libraries are linked against your
executable or library, then you can remove unused libraries
from the compiling command.
Also, objdump(1) may help on which functions are used in your
project.
Attempting to answer system-specific questions like this is a bad
idea, as you've just demonstrated. The original poster referred to
"the exe", which probably means a file with a ".exe" suffix, implying
that he's probably using MS Windows (or VMS, but that's unlikely these
days).
ldd and objdump are specific to Unix-like systems.
The OP needs to post his question to a forum that deals with whatever
system he's using, most likely comp.os.ms-windows.programmer.win32.
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"