{"id":73,"date":"2008-09-04T08:23:07","date_gmt":"2008-09-04T13:23:07","guid":{"rendered":"http:\/\/jaimerios.com\/?p=73"},"modified":"2008-09-04T08:23:07","modified_gmt":"2008-09-04T13:23:07","slug":"dumping-symbols-from-a-library","status":"publish","type":"post","link":"https:\/\/jaimerios.com\/?p=73","title":{"rendered":"Dumping symbols from a library"},"content":{"rendered":"<p>When you need to dump symbols from a dylib on Mac OS or a DLL on Windows, you can use the following commands to do so:<\/p>\n<blockquote><p><strong>Mac OS<\/strong><\/p>\n<p>nm -m mySpecialLibrary.dylib<\/p>\n<p><strong>Windows<\/strong><\/p>\n<p>dumpbin \/exports\u00a0mySpecialLibrary.dll<\/p><\/blockquote>\n<p>Now sometimes, you have have a lot of symbols in one library, or you may want to find one particular symbol. On the Mac, that&#8217;s pretty simple to do. Just use the grep command to find the symbol you are looking for:<\/p>\n<blockquote><p>nm -m mySpecialLibrary.dylib | grep someSpecialFunction<\/p><\/blockquote>\n<p>On the PC, you can dump your symbols to a file so that you can use a text editor like Notepad++ to search for symbols:<\/p>\n<blockquote><p>dumpbin \/exports\u00a0mySpecialLibrary.dll &gt; c:\\MyProjectFolder\\mySpecialLibrarySymbols.txt<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>When you need to dump symbols from a dylib on Mac OS or a DLL on Windows, you can use the following commands to do so: Mac OS nm -m mySpecialLibrary.dylib Windows dumpbin \/exports\u00a0mySpecialLibrary.dll Now sometimes, you have have a lot of symbols in one library, or you may want to find one particular symbol. &#8230; <a title=\"Dumping symbols from a library\" class=\"read-more\" href=\"https:\/\/jaimerios.com\/?p=73\" aria-label=\"Read more about Dumping symbols from a library\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[168,177,180,480,506],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-coding","tag-dll","tag-dump-symbols","tag-dylib","tag-visual-studio","tag-xcode"],"_links":{"self":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=73"}],"version-history":[{"count":0,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}