2009-03-26 04:21:13 UTC
Hi all,
I am encountering the following errors after trying to make the library.
Any idea why?
regards,
Cornelius
$ make
------------------
rm -f common.o
g++ -I. -W -Wall -DSCREEN_LOG=1 -DMILESTONE_LOG=1 -DTRACE_LOG=0 -c common.cpp
------------------
rm -f trace.o
g++ -I. -W -Wall -DSCREEN_LOG=1 -DMILESTONE_LOG=1 -DTRACE_LOG=0 -c trace.cpp
------------------
rm -f sockets.o
g++ -I. -W -Wall -DSCREEN_LOG=1 -DMILESTONE_LOG=1 -DTRACE_LOG=0 -c sockets.cpp
In file included from sockets.cpp:26:
sockets2.h: In member function 'std::basic_streambuf<_CharT, _Traits>* TCPStreamBuffer<charT, traits>::setbuf(charT*, std::strea
msize)':
sockets2.h:89: error: there are no arguments to 'gptr' that depend on a template parameter, so a declaration of 'gptr' must be a
vailable
sockets2.h:89: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is depre
cated)
sockets2.h: In member function 'void TCPStreamBuffer<charT, traits>::_flush()':
sockets2.h:108: error: there are no arguments to 'pptr' that depend on a template parameter, so a declaration of 'pptr' must be
available
sockets2.h: In member function 'typename std::basic_streambuf<_CharT, _Traits>::int_type TCPStreamBuffer<charT, traits>::overflo
w(typename std::basic_streambuf<_CharT, _Traits>::int_type)':
sockets2.h:122: error: there are no arguments to 'pptr' that depend on a template parameter, so a declaration of 'pptr' must be
available
sockets2.h: In member function 'typename std::basic_streambuf<_CharT, _Traits>::int_type TCPStreamBuffer<charT, traits>::underfl
ow()':
sockets2.h:161: error: there are no arguments to 'gptr' that depend on a template parameter, so a declaration of 'gptr' must be
available
sockets2.h:192: error: there are no arguments to 'sgetc' that depend on a template parameter, so a declaration of 'sgetc' must b
e available
make: *** [sockets.o] Error 1