bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make problems (atomic.h not linking in?)


From: Angus Wallace
Subject: Make problems (atomic.h not linking in?)
Date: 05 Aug 2002 23:00:15 +0930

Howdy all,

I'm trying to compile/install the CommonC++. The configure script
appears to proceed without problems but make fails. It appears that the
functions contained in atomic.h aren't available to the mutex.cpp file
to call even though atomic.h is present on my system.

Having said that, I seem to have 2 versions of atomic.h, one with the
functions, and one without. I thought the compilation might be
referencing the wrong one so I renamed it. that didn't work. Then I
copied the atomic.h file into the src directory of CommonC++, and
inserted the line:

#include 'home/wall0159/src/atomic.h'

but this was to no avail.

Here is the output from 'make'.

address@hidden CommonC++-1.9.7]$ make
Making all in src
make[1]: Entering directory `/home/wall0159/progs/CommonC++-1.9.7/src'
/bin/sh ../libtool --mode=compile 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
rm -f .libs/mutex.lo
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 -Wp,-MD,.deps/mutex.pp -c
mutex.cpp  -fPIC -DPIC -o .libs/mutex.lo
mutex.cpp: In method `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 method `int ost::AtomicCounter::operator-- ()':
mutex.cpp:347: `atomic_dec_and_test' undeclared (first use this
function)
mutex.cpp: In method `int ost::AtomicCounter::operator+= (int)':
mutex.cpp:358: `atomic_add' undeclared (first use this function)
mutex.cpp: In method `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 `/home/wall0159/progs/CommonC++-1.9.7/src'
make: *** [all-recursive] Error 1

Thanks in advance for any help.

-Angus Wallace







reply via email to

[Prev in Thread] Current Thread [Next in Thread]