Getting `__LOCK_INITIALIZER' was not declared in this scope error
I am compiling OpenDiameter code which uses the boost C++ library in my redhat linux machine(2.6.18-194.8.1.el5). But during compilation I get the error
../../../../libext/boost_1_37_0/boost/detail/spinlock_pool.hpp:73: error: `__LOCK_INITIALIZER' was not declared in this scope I am using gcc 3.4.1, glibc 2.5 and boost 1.37. The same thing is compiling in another redhat linux machine (2.6.9-22.0.2.ELsmp) which uses gcc 3.4.1, glibc 2.3.4 and boost 1.37. In google I found that __LOCK_INITIALIZER is a macro defined in pthread.h file Can anyone plz tell me what could be the problem? Is it a problem with the include files of C library? Or is it due to version incompatibility of glibc? |
Error while compiling
You may want to read this thread recording the same problem it has alot of information and you might get a Eureka.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276309 --------------------------------------------------------------------------------------------------------------------------- If my response helped give me a pat on the back (click on my rep) |
All times are GMT -5. The time now is 12:32 PM. |