Problem while Inheriting SIProfileFTHandler Class
From: Jeysibel Sousa Dantas <jeysibel@xxxxxxxxx>
Date: Wed, 4 Nov 2009 21:41:33 +0100 (CET)
Hello, I'm having a problem while I try to inherit  SIProfileFTHandler
class.

Below a piece of code:

#ifndef FILETRANFERHANDLER_H_
#define FILETRANFERHANDLER_H_
#include <siprofilefthandler.h>
#include <jid.h>
#include <stanza.h>
#include <socks5bytestream.h>

using namespace gloox;

class FileTranferHandler : SIProfileFTHandler {
public:
   ...
};

and the compiler catch this error:


make[1]: Entering directory `/home/jeysibel/Nteaching-workspace/Common'
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DCOMMON_LIBRARY -DQT_CORE_LIB
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4 -I/usr/include/gloox -I/usr/include/poppler/qt4
-I/usr/include/qt4/QtGui -Idebug -I. -o debug/filetranferhandler.o
filetranferhandler.cpp
In file included from filetranferhandler.h:29,
                 from filetranferhandler.cpp:27:
/usr/include/gloox/siprofilefthandler.h:98: error: ‘SOCKS5Bytestream’ has
not been declared


Adding ths include "#include "socks5bytestream.h"" to the
siprofilefthandler.h source code  correct the problem for me, and the
compiler stop with error messages, is this correct? there is a bug in the
lib or I'm just a noob ?


PS: I'm using gloox 0.9.9.5 and 0.9.9.12 and both contains this "error".
PS: Sorry for my bad english, I hope that yours understand something.





[]'s
---------------------------------------------------------------
Jeysibel de Sousa Dantas
Member of Percomp  Project -  www.percomp.org
Embedded Systems and Pervasive Computing
Lab**<http://www.embedded.ufcg.edu.br/infraen.html> -
www.embedded.ufcg.edu.br
Undergraduate Student at Computer Science - www.ccc.ufcg.edu.br
Universidade Federal de Campina Grande - www.ufcg.edu.br
---------------------------------------------------------------