I get this error. I don't see anything in the README or INSTALL files, or this forum. Has anyone else tried this?
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -I/usr/include/libxml2 -I../src -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c mutex.cpp -fPIC -DPIC -o .libs/mutex.lo
In file included from config.h:449,
from mutex.cpp:41:
/usr/include/asm/atomic.h:40:2: warning: #warning Using kernel header in userland program. BAD!
mutex.cpp: In member function `int ost::AtomicCounter::operator++()':
mutex.cpp:341: `atomic_inc' undeclared (first use this function)
mutex.cpp:341: (Each undeclared identifier is reported only once for each
function it appears in.)
mutex.cpp: In member function `int ost::AtomicCounter::operator--()':
mutex.cpp:347: `atomic_dec_and_test' undeclared (first use this function)
mutex.cpp: In member function `int ost::AtomicCounter::operator+=(int)':
mutex.cpp:358: `atomic_add' undeclared (first use this function)
mutex.cpp: In member function `int ost::AtomicCounter::operator-=(int)':
mutex.cpp:364: `atomic_sub' undeclared (first use this function)
make[1]: *** [mutex.lo] Error 1
make[1]: Leaving directory `/usr/local/src/sumi/CommonC++-1.9.7/src'
make: *** [all-recursive] Error 1
[root@dragonfly /usr/local/src/sumi/CommonC++-1.9.7]
#
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get this error. I don't see anything in the README or INSTALL files, or this forum. Has anyone else tried this?
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -I/usr/include/libxml2 -I../src -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c mutex.cpp -fPIC -DPIC -o .libs/mutex.lo
In file included from config.h:449,
from mutex.cpp:41:
/usr/include/asm/atomic.h:40:2: warning: #warning Using kernel header in userland program. BAD!
mutex.cpp: In member function `int ost::AtomicCounter::operator++()':
mutex.cpp:341: `atomic_inc' undeclared (first use this function)
mutex.cpp:341: (Each undeclared identifier is reported only once for each
function it appears in.)
mutex.cpp: In member function `int ost::AtomicCounter::operator--()':
mutex.cpp:347: `atomic_dec_and_test' undeclared (first use this function)
mutex.cpp: In member function `int ost::AtomicCounter::operator+=(int)':
mutex.cpp:358: `atomic_add' undeclared (first use this function)
mutex.cpp: In member function `int ost::AtomicCounter::operator-=(int)':
mutex.cpp:364: `atomic_sub' undeclared (first use this function)
make[1]: *** [mutex.lo] Error 1
make[1]: Leaving directory `/usr/local/src/sumi/CommonC++-1.9.7/src'
make: *** [all-recursive] Error 1
[root@dragonfly /usr/local/src/sumi/CommonC++-1.9.7]
#