Skip to content

Makefile compiling errors due to namespace on Mac OSX #4

Description

@cdw9bf

Hi,

I am currently having a problem when making Logger. There appears to be two functions by the names of "lock_guard" and "unique_lock" when making the OpenNI1 directory. One of these functions in located in "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__mutex_base" and the other one with the same name is located in "/usr/local/include/boost/thread/lock_guard.hpp" .

I assume you want to use the function found in the boost directory but I found that these two lines are the ones that are creating the issue.

using namespace std;
using namespace boost;

Is there an easy way around this other than changing all of the function names to include boost:: before them and removing the namespace line calling in all boost functions?

Thanks,

Chris

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions