Hello,

the following error occours:

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I/usr/src/linux/include 
-I/usr/rtlinux/include -I/usr/rtlinux/include/compat -I/usr/rtlinux/include/posix    
-Wall -Wstrict-prototypes -Winline -m486 -malign-loops=2 -malign-jumps=2 
-malign-functions=2 -fno-exceptions -fno-rtti -pipe -fno-strength-reduce 
-mpreferred-stack-boundary=2 -DCPU=686 -march=i686 -Wall -Wstrict-prototypes -D__RTL__ 
-D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -g -DDEBUG  -c DaqShm.cc
In file included from /usr/include/_G_config.h:9,
                 from 
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_config.h:151,
                 from 
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_algobase.h:36,
                 from 
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/vector:30,
                 from DaqShm.cc:53:
/usr/include/bits/types.h:95: warning: `__NFDBITS' redefined
/usr/src/linux/include/linux/posix_types.h:22: warning: this is the location of the 
previous definition
/usr/include/bits/types.h:97: warning: `__FDMASK' redefined
/usr/src/linux/include/linux/posix_types.h:34: warning: this is the location of the 
previous definition
In file included from 
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/vector:31,
                 from DaqShm.cc:53:
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_alloc.h:581: 
parse error before `}'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_alloc.h:581: 
excess elements in aggregate initializer    


This is the part from stl_aloc.h:
#ifdef __STL_PTHREADS
    template <bool __threads, int __inst>
    pthread_mutex_t
    __default_alloc_template<__threads, __inst>::_S_node_allocator_lock
        = PTHREAD_MUTEX_INITIALIZER;
#endif

A simple undef _STL_PTHREADS doesn't help. What wrong here and how can I avoid
the warnings above.

Thanks  Olaf
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to