{"id":5797,"date":"2014-04-07T09:14:19","date_gmt":"2014-04-07T09:14:19","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/linking-c-library-so-as-it-is-callable-as-c-collection-of-common-programming-errors\/"},"modified":"2014-04-07T09:14:19","modified_gmt":"2014-04-07T09:14:19","slug":"linking-c-library-so-as-it-is-callable-as-c-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/linking-c-library-so-as-it-is-callable-as-c-collection-of-common-programming-errors\/","title":{"rendered":"linking C++ library so as it is callable as C-Collection of common programming errors"},"content":{"rendered":"<p>I am really not an expert at C\/C++ Linking magic. g++ and Cygwin neither, rather a novice indeed.<\/p>\n<p>Imagine I have an executable, (Apache Server in my case), which accepts C library as modules. e.g. compiled file <em>libMyServer.so<\/em><\/p>\n<p>If I do the guts coding in C++, and export <strong>only vanilla functions<\/strong>, for example static member functions of a class I&#8217;d call CExportToC&#8230; if I do this will the linking magic make my library <em>libMyServer<\/em> reachable from a program requesting C libraries ?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am really not an expert at C\/C++ Linking magic. g++ and Cygwin neither, rather a novice indeed. Imagine I have an executable, (Apache Server in my case), which accepts C library as modules. e.g. compiled file libMyServer.so If I do the guts coding in C++, and export only vanilla functions, for example static member [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5797","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5797"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5797\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}