Boost C++ Libraries: Ticket #10761: Multiple definition error during linking https://svn.boost.org/trac10/ticket/10761 <p> Hi Team, I am trying to create Mutex using boost::interprocess::named_recursive_mutex(..) but in iOS 8 it failed to create a mutex due to "Opeation Not Permitted" error. When i looked into boost internal code it is trying to create a folder at "\tmp\boost_interprocess" which is not accessible.So to fix this error, i set the path form the application to a global variable in "os_file_functions.hpp" to read path in "boost:interprocess:ipcdetail::get_temporary_path". But when i tried to include "os_file_functions.hpp" in my application at multiple files, it throwing error as "Multiple definition error" during linking. Can you please let me know how to fix it. </p> <p> Thanks, Suresh </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10761 Trac 1.4.3 variganji.suresh@… Thu, 06 Nov 2014 08:41:20 GMT attachment set https://svn.boost.org/trac10/ticket/10761 https://svn.boost.org/trac10/ticket/10761 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">os_file_functions.hpp</span> </li> </ul> <p> code changes with multiple definition error </p> Ticket viboes Fri, 13 Feb 2015 18:33:14 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10761#comment:1 https://svn.boost.org/trac10/ticket/10761#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Ion Gaztañaga</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">interprocess</span> </li> </ul> Ticket Ion Gaztañaga Wed, 11 Mar 2015 20:27:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10761#comment:2 https://svn.boost.org/trac10/ticket/10761#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> You are defining a global variable in a header file, that's always a multiple definition error if the file is included twice. You must declare it in a header but define it in a cpp files. </p> Ticket