Help Compiling this Code
From: "soumen banerjee" <soumen.banerjee@xxxxxxxxx>
Date: Mon, 20 Feb 2006 21:32:49 +0100
Thanks Jacob,

That test file really helped, but now just a very simple question...
here's a simple code below its nothing but developed to connect to
google through SOCK_PROXY which is another code developed my
me.. that code is running smooth ( GAIM working fine on it)

================================================
#include <stdio.h>
#include <iostream.h>
#include <string.h>
#include <gloox/src/jid.h>
#include <gloox/src/connection.h>
#include <gloox/src/connectionlistener.h>
#include <gloox/src/messagehandler.h>
#include <gloox/src/parser.h>
#include <gloox/src/client.h>
#include <gloox/src/gloox.h>
using namespace std;
using namespace gloox;
class G_ID : public JID, ConnectionListener {
        public:
        G_ID(){};
        virtual ~G_ID();
        void initialize(){
                setlocale( LC_ALL, "" );
                JID jid("soumen.banerjee@xxxxxxxxx/gmail.com");
                GMail_Client = new Client(jid,"noexcess",12346);
                GMail_Client->setAutoPresence(true);
                GMail_Client->setInitialPriority(5);
                GMail_Client->registerConnectionListener(this);
                //GMail_Client->registerMessageHandler(this);
                GMail_Client->connect();
        }
        private:
        Client *GMail_Client;
        public:
        virtual void onConnect()
                {std::cout<<"onConnect";};
        virtual void onDisconnect(ConnectionError error)
                {std::cout<<"Connection Error";};
        virtual bool onTLSConnect(const CertInfo& certificate)
                {std::cout<<"TLS TRUE";};
};


int main(){
        //class Connection conn(parser_value,127.0.0.1,12345);
        //class client G_CONNECT("soumen.banerjee","iwonttellanybdy","
127.0.0.1","gmail.com",12345);
        //G_CONNECT->connect();
        G_ID *test = new G_ID();
        //test->initialize();
        return 1;
}

===========================================================================
its giving this compilation error i used this commad to compile
"g++ -Wno-deprecated gloox.cpp -o gloox"
===========================================================================
HERE THE COMPILATION RESULT
[soumen@localhost coded]$ g++ -Wno-deprecated gloox.cpp -o gloox
/tmp/ccH13kG0.o(.gnu.linkonce.t._ZN4G_IDC1Ev+0xd): In function
`G_ID::G_ID[in-charge]()':
: undefined reference to `gloox::JID::JID[not-in-charge]()'
/tmp/ccH13kG0.o(.gnu.linkonce.t._ZN4G_IDC1Ev+0x2b): In function
`G_ID::G_ID[in-charge]()':
: undefined reference to `vtable for G_ID'
/tmp/ccH13kG0.o(.gnu.linkonce.t._ZN4G_IDC1Ev+0x37): In function
`G_ID::G_ID[in-charge]()':
: undefined reference to `vtable for G_ID'
collect2: ld returned 1 exit status
===========================================================================
my gloox files are in /usr/include/<gloox/src/*>
i even tried the included libtool but cant figure it out
===========================================================================
--
thanking you
Soumen Banerjee
(If you think i am just another spammer, they you dont know me)
-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx