Boost C++ Libraries: Ticket #6328: Mac OSX linker boost::system category referenced from static.. https://svn.boost.org/trac10/ticket/6328 <p> When I compile Boost.asio or boost.filesystem code (GCC4.3) in mac osx I get </p> <p> Build boosttesttwo of project boosttesttwo with configuration Debug </p> <p> Ld ./boosttesttwo.app/Contents/MacOS/boosttesttwo normal i386 cd /Users/noahwhiteis/C++/nm/boosttesttwo setenv MACOSX_DEPLOYMENT_TARGET 10.6 /Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L. -L/opt/local/lib -Lcs106 -L/Users/noahwhiteis/C++/nm/boosttesttwo/cs106 -L/opt/local/lib -F. -filelist /Users/noahwhiteis/C++/nm/boosttesttwo/build/boosttesttwo.build/Debug/boosttesttwo.build/Objects-normal/i386/boosttesttwo.<a class="missing wiki">LinkFileList</a> -mmacosx-version-min=10.6 -framework Cocoa -framework Carbon -lcs106 -o ./boosttesttwo.app/Contents/MacOS/boosttesttwo </p> <p> Undefined symbols: </p> <blockquote> <p> "boost::filesystem3::detail::file_size(boost::filesystem3::path const&amp;, boost::system::error_code*)", referenced from: </p> <blockquote> <p> boost::filesystem3::file_size(boost::filesystem3::path const&amp;)in main.o </p> </blockquote> <p> "boost::system::system_category()", referenced from: </p> <blockquote> <p> <span class="underline">static_initialization_and_destruction_0(int, int)in main.o </span></p> </blockquote> <p> "boost::filesystem3::path::wchar_t_codecvt_facet()", referenced from: </p> <blockquote> <p> boost::filesystem3::path::codecvt() in main.o </p> </blockquote> <p> "boost::system::generic_category()", referenced from: </p> <blockquote> <p> <span class="underline">static_initialization_and_destruction_0(int, int)in main.o </span>static_initialization_and_destruction_0(int, int)in main.o </p> </blockquote> </blockquote> <p> ld: symbol(s) not found collect2: ld returned 1 exit status </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6328 Trac 1.4.3 Marshall Clow Thu, 29 Dec 2011 03:17:25 GMT <link>https://svn.boost.org/trac10/ticket/6328#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6328#comment:1</guid> <description> <p> Boost.System and Boost.<a class="missing wiki">FileSystem</a> are not header-only libraries. You need to create the libraries and link to them. </p> <p> By the way, it appears that you created four identical tickets - was that on purpose? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 29 Dec 2011 03:26:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6328#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6328#comment:2</guid> <description> <p> I do have the libraries for each library including filesystem and system in dylib </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Thu, 29 Dec 2011 03:33:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6328#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6328#comment:3</guid> <description> <p> But in the build commands that you posted, I see no evidence that you are linking to them. </p> <p> <code>-l libSystem</code> (say) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>René Rivera</dc:creator> <pubDate>Thu, 19 Jan 2012 02:35:06 GMT</pubDate> <title>status, severity changed; resolution set https://svn.boost.org/trac10/ticket/6328#comment:4 https://svn.boost.org/trac10/ticket/6328#comment:4 <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">worksforme</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> </ul> Ticket