Share

C++ Stream Compatible TCP/IP Sockets

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Make errors

You are viewing a single message from this topic. View all messages.

  1. 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
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.