There was an error in compilation of CommonC++-1.9.1 under SPARC Solaris 8. I used gcc-3.0.2. The compiler said that atomic_t has been used as a type but it was not declared as a type.
Can anyone help me?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This problem have been fixed in cvs (after version 0.9.3). I tried to compile demo apps on sf compile farm but link fail. Do you have same problem or is a CF problem ??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There was an error in compilation of CommonC++-1.9.1 under SPARC Solaris 8. I used gcc-3.0.2. The compiler said that atomic_t has been used as a type but it was not declared as a type.
Can anyone help me?
I think this maybe a bug:
I found this in src/config.h
#ifdef HAVE_SYS_ATOMIC_H
#include <sys/atomic.h>
#define HAVE_ATOMIC
#else
#ifdef HAVE_ASM_ATOMIC_H
#include <asm/atomic.h>
#define HAVE_ATOMIC
#endif
and this in thread.h
#ifdef HAVE_ATOMIC
atomic_t atomic;
#else
sys/atomic.h do exsist ,but I can not find where to declare "atomic_t"??
This problem have been fixed in cvs (after version 0.9.3). I tried to compile demo apps on sf compile farm but link fail. Do you have same problem or is a CF problem ??
I found problem. In thread we declare gethostname, giving a C++ mangling, removed definition and now it work