Gloox - compilation error -lgloox
From: Programistagd <programistagd@xxxxxxxxx>
Date: Wed, 19 May 2010 19:00:25 +0200 (CEST)
Hi!
When I'm compiling Gloox on WinXP I get error: "ld.exe   cannot find
-lgloox".
What to do to fix it?
My source code is:

>  #include "gloox/client.h"
>
> #include "gloox/messagehandler.h"
>
> #include "gloox/message.h"
>
> using namespace gloox;
>
> class Bot : public MessageHandler
>
> {
>
> public:
>
>     Bot()
>
>     {
>
>         JID jid( "bot@server/resource" );
>
>         j = new Client( jid, "pwd" );
>
>         j->registerMessageHandler( this );
>
>         j->connect();
>
>     }
>
>          virtual void onConnect(){
>
>
>>          }
>
>     virtual void handleMessage( const Message& stanza,
>
>                                 MessageSession* session = 0 )
>
>     {
>
>         Message msg( Message::Normal,stanza.from(), "hello world" );
>
>         j->send( msg );
>
>     }
>
> private:
>
>     Client* j;
>
> };
>
> int main( int argc, char* argv[] )
>
> {
>
>     Bot b;
>
> }
>
> In project folder I have:
-folder "gloox" with sources
-libgloox.a
-libgloox.def
-gloox.dll another question: how to use it?
-ltmain.sh
-main.cpp
-main.cbp(I'm using Code::Blocks).
Thanks in advance.