Menu

mutex.cpp not allowing compile on ppc

Help
2002-02-05
2002-02-07
  • Vincas Ciziunas

    Vincas Ciziunas - 2002-02-05

    I've tried to compile multiple versions of CommonC++...stable, unstable, etc.  I know it's possible, because there are ppc debian packages for 1.9.x ...here are the errors I get:

    c++ -DHAVE_CONFIG_H -I. -I. -I. -I../posix -I/usr/include/libxml2/libxml -I/usr/include/libxml2 -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c mutex.cpp  -fPIC -DPIC -o .libs/mutex.lo
    mutex.cpp: In method `int cc_AtomicCounter::operator ++()':
    mutex.cpp:276: implicit declaration of function `int atomic_inc(...)'
    mutex.cpp:277: implicit declaration of function `int atomic_read(...)'
    mutex.cpp: In method `int cc_AtomicCounter::operator --()':
    mutex.cpp:282: implicit declaration of function `int atomic_dec_and_test(...)'
    mutex.cpp: In method `int cc_AtomicCounter::operator +=(int)':
    mutex.cpp:293: implicit declaration of function `int atomic_add(...)'
    mutex.cpp: In method `int cc_AtomicCounter::operator -=(int)':
    mutex.cpp:299: implicit declaration of function `int atomic_sub(...)'
    mutex.cpp: In method `int cc_AtomicCounter::operator =(int)':
    mutex.cpp:315: implicit declaration of function `int atomic_set(...)'
    make[1]: *** [mutex.lo] Error 1
    make[1]: Leaving directory `/usr/src/CommonC++-1.6.4/posix'
    make: *** [all-recursive] Error 1
    geefour:/usr/src/CommonC++-1.6.4#

    anyone  have any thoughts??  I know that those atomic functions are in linux/atomic.h, but they aren't int functions, they're void.

     
    • Frediano Ziglio

      Frediano Ziglio - 2002-02-07

      Fixed very recently.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.