What is the best way to find which library a function can belong to?

What is the best way to find which library a function can belong to?

When creating source code, I sometimes get an “undefined link to“ errors. ”When they are functional calls, I would like to know which libraries need to be linked more easily than my regular game. Any ideas?

-Chenz

+3
source share
2 answers

As far as I know, you hardly believe how automatic the solution goes.

You can try dumping all the characters from all of your regular libraries into a file and grepping through the results to find the one you are looking for. You just had to dump infrequently

I think the unix "nm" tool is what you are looking for. I don't know about windows sorry

- Linux:

find . -name "*.so" -print0 | xargs -0 nm -A | egrep ' [TWDB] ' > symbols.out
+3

msdn.microsoft.com . , . , , . nm .

-1

Source: https://habr.com/ru/post/1720593/


All Articles