c++ -DHAVE_CONFIG_H -I. -I. -I. -I../posix -g -O2 -D_GNU_SOURCE
-D_REENTRANT -D_THREAD_SAFE -c -fPIC -DPIC thread.cpp -o
.libs/thread.lo
In file included from /usr/include/fcntl.h:18,
from config.h:285,
from thread.cpp:41:
/usr/include/sys/feature_tests.h:143: warning: `_POSIX_PTHREAD_SEMANTICS'
redefined
config.h:250: warning: this is the location of the previous definition
thread.cpp: In method `void cc_Thread::WaitSignal(int)':
thread.cpp:471: implicit declaration of function `int _thr_sigwait(...)'
*** Error code 1
If I comment out the line
#define sigwait(x, y) _thr_wait(x,y)
from thread.h it compiles.
(But I am having probles with thread signaling, perhaps this could be the problem.)
Any ideas???
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem with signaling is a bug because the thread executive did not do a setkey.self. This has been fixed in cvs and new releases. The problem with sigwait seems to depend on which version of solaris/sunos and the runtime libraries involved and which compiler toolset is used. I do not have a single solution that seems to work on every combination as yet, nor do I know which ones require which version of sigwait to be used.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear sir,
I want to develop a small application using CommonC++-1.9.2 under redhat linux 7.1
By Kdevelop Project, I install CommonC++-1.9.2 without error. But using CommonC+++ library in the application then:
When compiling on my x86 Solaris 8 system
# uname -a
SunOS fms 5.8 Generic_108529-05 i86pc i386 i86pc
# gcc --version
2.95.2
I get the following error:
c++ -DHAVE_CONFIG_H -I. -I. -I. -I../posix -g -O2 -D_GNU_SOURCE
-D_REENTRANT -D_THREAD_SAFE -c -fPIC -DPIC thread.cpp -o
.libs/thread.lo
In file included from /usr/include/fcntl.h:18,
from config.h:285,
from thread.cpp:41:
/usr/include/sys/feature_tests.h:143: warning: `_POSIX_PTHREAD_SEMANTICS'
redefined
config.h:250: warning: this is the location of the previous definition
thread.cpp: In method `void cc_Thread::WaitSignal(int)':
thread.cpp:471: implicit declaration of function `int _thr_sigwait(...)'
*** Error code 1
If I comment out the line
#define sigwait(x, y) _thr_wait(x,y)
from thread.h it compiles.
(But I am having probles with thread signaling, perhaps this could be the problem.)
Any ideas???
The problem with signaling is a bug because the thread executive did not do a setkey.self. This has been fixed in cvs and new releases. The problem with sigwait seems to depend on which version of solaris/sunos and the runtime libraries involved and which compiler toolset is used. I do not have a single solution that seems to work on every combination as yet, nor do I know which ones require which version of sigwait to be used.
Dear sir,
I want to develop a small application using CommonC++-1.9.2 under redhat linux 7.1
By Kdevelop Project, I install CommonC++-1.9.2 without error. But using CommonC+++ library in the application then:
Project Options - KDevelop
Linker Options
Library flags:
-L/usr/local/lib -D_REENTRANT -D_THREAD_SAFE -g -O2 -D_GNU_SOURCE
Library
Additional libraries:
-lpthread /usr/local/lib/libccext.a /usr/local/lib/libccgnu.a
When I complier then following error
g++ -DHAVE_CONFIG_H -I. -I. -I.. -O0 -g3 -Wall -c main.cpp
In file included from /usr/local/include/cc++/file.h:49,
from main.cpp:27:
/usr/local/include/cc++/thread.h:334: syntax error before `;'
/usr/local/include/cc++/thread.h:1010: warning: `void ost::ccxx_sigsuspend (int)' declared `static' but
never defined
gmake[3]: *** [main.o] Error 1
gmake[3]: Leaving directory `/root/linkcommonc/linkcommonc'
gmake[2]: Leaving directory `/root/linkcommonc/linkcommonc'
gmake[1]: Leaving directory `/root/linkcommonc'
gmake[2]: *** [all-recursive] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all-recursive-am] Error 2
*** failed ***
Why? Please help me, Thank you veru much.
Besh wish,