Results 1 to 3 of 3

Thread: NEED HELP!!! about qsslsocket

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default NEED HELP!!! about qsslsocket

    Hi,everyone,now I am trying to write some code using QT4,but I got the following problem.

    I installed qt-win-opensource-4.3.4-mingw.exe,and I need to use QSslSocket,it works fine
    But currently I got some problem,so I have to debug it,so I have to :
    "Qt 4.3.4 (Build Debug Libraries)" founded in the start menu.
    and recompile the qt to generate debug libs.

    AND THE error come out---

    e" -I"." -I"e:\Qt\4.3.4\include\ActiveQt" -I"debug" -I"." -I"..\..\Qt\4.3.4\mks
    ecs\win32-g++" -o debug\main.o main.cc
    n file included from main.cc:13:
    sl/QSslImpl.h:35: error: ISO C++ forbids declaration of `QSslSocket' with no ty
    e
    sl/QSslImpl.h:35: error: expected `;' before '*' token
    ingw32-make[1]: *** [debug/main.o] Error 1

    IT SEEMS THATS AFTER COMPILING DEBUG LIBS,THE QSSLSOCKET NO LONGER
    AVAIBLE,I REAALY DONNOT KNOW WHY?AND I TRY TO COMPILE WITH:
    MAKE -F Makefile.release IT ALSO NO LONGER COMPILED SUCCESFULLY.


    I NEED YOU HELP,GREAT THANKS!!!!


    MY CLASS DEF HERE:

    Qt Code:
    1. #ifndef _QSSLIMPL_H
    2. #define _QSSLIMPL_H
    3.  
    4. #include <QObject>
    5. #include <QtNetwork>
    6. #include <QAbstractSocket>
    7. #include <QSslSocket>
    8. #include <QSslCertificate>
    9. #include <QRegExp>
    10.  
    11. #include "common\common.h"
    12. #include "xml/XMPPBase.h"
    13.  
    14. class QSslImpl:public QObject
    15. {
    16. Q_OBJECT //add this to support qt signals&slot merchanism
    17. public:
    18. QSslImpl();
    19. ~QSslImpl();
    20. qint8 connectedTcp();
    21. qint8 switchToTLS();
    22. qint8 sendRaw(const char * data);
    23. qint8 sendStanza(const char *data);
    24. public slots:
    25. void readData();
    26. void displayError(QAbstractSocket::SocketError socketError);
    27. void connected();
    28.  
    29. private:
    30. QTcpSocket *qtcpSocket;
    31. QSslSocket *qsslSocket;
    32. QByteArray *recvBuffer;
    33.  
    34. qint8 socketState;
    35. qint8 xmppState;
    36. qint64 recvLen;
    37.  
    38. };
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 12th May 2008 at 09:09. Reason: missing [code] tags

Similar Threads

  1. Distributing applications which use QSslSocket
    By walec51 in forum Qt Programming
    Replies: 4
    Last Post: 9th April 2008, 11:49
  2. QSslSocket problem
    By The Storm in forum Qt Programming
    Replies: 5
    Last Post: 23rd March 2008, 13:58
  3. QSslSocket problems
    By TheOnlyDan in forum Qt Programming
    Replies: 6
    Last Post: 27th September 2007, 12:54
  4. QSslSocket : Having troubles
    By Nyphel in forum Newbie
    Replies: 3
    Last Post: 27th June 2007, 15:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.