From: Prochnow, C. <pro...@se...> - 2005-05-27 14:49:15
|
Am Donnerstag 26 Mai 2005 17:54 schrieb stephan beal: > g++ -pipe -Wall -Werror -g -DDEBUG -D_DEBUG -fPIC -I. -I../include > -c -o AtomicInt.gcc-x86.o AtomicInt.gcc-x86.cpp > AtomicInt.gcc-x86.cpp:30: error: template-id `set<>' for `void > P::Traits::AtomicTraits<int>::set(int*, int)' does not match any > template > declaration > AtomicInt.gcc-x86.cpp:30: error: syntax error before `{' token > AtomicInt.gcc-x86.cpp:34: error: syntax error before `::' token > AtomicInt.gcc-x86.cpp:39: error: syntax error before `::' token > AtomicInt.gcc-x86.cpp:47: error: syntax error before `::' token > AtomicInt.gcc-x86.cpp:57: error: syntax error before `::' token > AtomicInt.gcc-x86.cpp:65: error: syntax error before `::' token > make[1]: *** [AtomicInt.gcc-x86.o] Error 1 I think you use the toc-build system. If you have a look in the header AtomicTraits.h, you will see that the PCLASSES_HAVE_ATOMIC_INT preprocessor should be defined when AtomicInt.gcc-x86.cpp is compiled into the library. If no native atomic-int support was detected, the preprocessor symbol must not be defined and AtomicInt.xxxxx.cpp should not be compiled into the library. Greetings, Christian |