mp3guy / Logger1

Tool for logging RGB-D data from the Microsoft Kinect and ASUS Xtion Pro Live
BSD 2-Clause "Simplified" License
11 stars 13 forks source link

Makefile compiling errors due to namespace on Mac OSX #4

Open cdw9bf opened 8 years ago

cdw9bf commented 8 years ago

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

mp3guy commented 8 years ago

I'm not sure, best to try that first and see if it works.

cdw9bf commented 8 years ago

Are the only functions you are calling from boost the "lock_guard" and "unique_lock"?

mp3guy commented 8 years ago

I'm not sure, you could take a look around. I'm pretty sure all the boost stuff could be replaced with Qt/C++11 calls though.