troubleshooting Question

XCode/Boost Library Question - "Error: Template with C linkage"

Avatar of bigcheeze111
bigcheeze111 asked on
3 Comments1 Solution1004 ViewsLast Modified:
Hello All,

I've recently just started using the XCode environment on the MAC OSX platform and have been trying to configure the C++ Boost Library (Looks to be a great library). I've successfully built the library using Boost.Jam and have placed this build under the default locations for XCode (on my system, at least) --> "/Developer/SDKs/MacOSX10.4u.sdk/usr/boost" include and "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/boost".

Upon attempting to utilize one of the headers, "path.hpp" in this instance, I am encountered with  numerous compiliation errors pointing to various other header files. The error of mention is "error: template with C linkage".

To my knowledge, the Boost library has been built correctly and the header reference is obviously correct.

#include <boost/filesystem/path.hpp>

I've read some other sources which mention that I should add the boost directory to the Header Search Paths in my build settings(Most notably, I have attempted this only to yield a greater and more diverse error set. In particular I have performed this by going to "Project-->Edit Project Settings-->Build-->Header Search Paths" and entering "/Developer/SDKs/MacOSX10.4u.sdk/usr/boost" as a search path and checking off the "recursive" check box. I've also done the same for the "User Header Search Path".

Am I doing something wrong? Has anyone had similar issues? Can you point me in the right direction? Please let me know if any further clarification is necessary. I'd be happy to provide it.

You're assistance is greatly appreciated. Thank you.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros