Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor pit_29's Avatar
    Join Date
    Jul 2011
    Posts
    100
    Hi, I have some errors in the implementation of my program, but which are not, here I leave the errors:
    1) C:\ejemplos_qt\teratermobile\cliente.cpp:-1: error: undefined reference to `QTcpSocket::QTcpSocket(QObject*)'
    \QtSDK\Symbian\SDKs\Symbian1Qt473\EPOC32\BUILD\ejemplos_qt\teratermobile\TERATERMOBILE_EXE\GCCE\UREL\cliente.o:-1: In function `cliente::cliente()':

    2) C:\ejemplos_qt\teratermobile\cliente.cpp:-1: error: undefined reference to `QTcpSocket::QTcpSocket(QObject*)'
    \QtSDK\Symbian\SDKs\Symbian1Qt473\EPOC32\BUILD\ejemplos_qt\teratermobile\TERATERMOBILE_EXE\GCCE\UREL\cliente.o:-1: In function `cliente::recv()':

    3) C:\ejemplos_qt\teratermobile\cliente.cpp:-1: error: undefined reference to `cliente:arseMessage(QString)'

    4) C:\ejemplos_qt\teratermobile\cliente.cpp:-1: error: undefined reference to `QAbstractSocket::abort()'

    5) C:\ejemplos_qt\teratermobile\cliente.cpp:-1: error: undefined reference to `QAbstractSocket::connectToHost(QString const&, unsigned short, QFlags<QIODevice::OpenModeFlag>)'

    6) C:\ejemplos_qt\teratermobile\cliente.cpp:-1: error: undefined reference to `QAbstractSocket::isValid() const'

    and my code cliente.cpp is this:


    #include "cliente.h"
    #include <QtNetwork/QTcpSocket>

    cliente::cliente()
    {
    //READ: Instanciar Socket y conectar las señales, la

    ==>> socket = new QTcpSocket(this);

    connect( socket, SIGNAL(connected()), this, SLOT(conectado()));
    connect( socket, SIGNAL(readyRead()), this, SLOT(recv()));
    connect( socket, SIGNAL(disconnected()), this, SLOT(disconnect()));
    connect( socket, SIGNAL(error(QAbstractSocket::SocketError)),
    this, SLOT(displayError(QAbstractSocket::SocketError)));

    ¨¨¨¨¨¨¨¨

    and error mark me where is this sign ==>>

    an my code cliente.h is this.

    #ifndef CLIENTE_H
    #define CLIENTE_H



    #include <QObject>

    #include <QtNetwork/QTcpSocket>

    class cliente: public QObject
    {
    Q_OBJECT

    public:

    cliente();

    //READ: El socket que mantiene la comunicacion y un array de bytes para enviar
    // y leer mensajes
    QTcpSocket *socket;
    bool estaConectado;

    :
    :
    :

    thanks

  2. #2
    Registered User favoritas37's Avatar
    Join Date
    May 2009
    Location
    Greece
    Posts
    191
    Do you have this line in your .pro file?
    Code:
     QT += network

  3. #3
    Regular Contributor pit_29's Avatar
    Join Date
    Jul 2011
    Posts
    100
    Now I get this error:

    C:\ejemplos_qt\teratermobile\cliente.cpp:-1: error: undefined reference to `cliente:arseMessage(QString)'

    no means

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,671
    could it be that you are defined a function ParseMessage in cliente.h, and are trying to use it, and you forgot to actually implement it in the cliente.cpp file.

  5. #5
    Regular Contributor pit_29's Avatar
    Join Date
    Jul 2011
    Posts
    100
    thank you very much and troubleshoot compilation and execution,
    My question is, if someone could send my project to review it and tell me if this correct and does what I want. if there is any interested I would give my email and explain what I intend to do with my project.
    thank you very much

Similar Threads

  1. what is the mistake in my gps code
    By amit.mangal in forum Symbian Tools & SDKs
    Replies: 8
    Last Post: 2009-09-26, 09:51
  2. I have a problem,please help!
    By agan1003 in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-12-25, 01:56
  3. What software have I installed?
    By JOM in forum Python
    Replies: 7
    Last Post: 2008-05-14, 21:35
  4. Please explain my mistake
    By bubuuns in forum Python
    Replies: 5
    Last Post: 2007-01-02, 16:06
  5. please, i have only a problem:
    By tinduc in forum General Messaging
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved