List Info

Thread: trying to make a code like justins code (jabber example) but i have errors




trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-20 10:43:55
here is the error that i encounter
-------------------------------------------------------------------

1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::Jid::~Jid(void)" (??1JidXMPPQAEXZ) referenced in function __unwindfunclet$??0IrisExampleQAEPAVQObjectZ$0
1>;main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::Client::Client(class QObject *)" (??0ClientXMPPQAEPAVQObjectZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::setOldOnly(bool)" (?setOldOnlyClientStreamXMPPQAEX_NZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::ClientStream::ClientStream(class XMPP::Connector *,class XMPP::TLSHandler *,class QObject *)" (??0ClientStreamXMPPQAEPAVConnector1PAVTLSHandler1PAVQObjectZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::AdvancedConnector::AdvancedConnector(class QObject *)" (??0AdvancedConnectorXMPPQAEPAVQObjectZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: class XMPP::Jid & __thiscall XMPP::Jid::operator=(char const *)" (??4JidXMPPQAEAAV01PBDZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::Jid::Jid(void)" (??0JidXMPPQAEXZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::Client::connectToServer(class XMPP::ClientStream *,class XMPP::Jid const &,bool)" (?connectToServerClientXMPPQAEXPAVClientStream2ABVJid2_NZ) referenced in function "public: void __thiscall IrisExample::goAuthenticate(void)" (?goAuthenticateIrisExampleQAEXXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::continueAfterWarning(void)" (?continueAfterWarningClientStreamXMPPQAEXXZ) referenced in function "private: void __thiscall IrisExample::stream_warning(int)" (?stream_warningIrisExampleAAEXHZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::Client::start(class QString const &,class QString const &,class QString const &,class QString const &)" (?startClientXMPPQAEXABVQString000Z) referenced in function "private: void __thiscall IrisExample::stream_authenticated(void)" (?stream_authenticatedIrisExampleAAEXXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::continueAfterParams(void)" (?continueAfterParamsClientStreamXMPPQAEXXZ) referenced in function "private: void __thiscall IrisExample::stream_needAuthParams(bool,bool,bool)" (?stream_needAuthParamsIrisExampleAAEX_N00Z)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::setPassword(class QString const &)" (?setPasswordClientStreamXMPPQAEXABVQStringZ) referenced in function "private: void __thiscall IrisExample::stream_needAuthParams(bool,bool,bool)" (?stream_needAuthParamsIrisExampleAAEX_N00Z)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::setUsername(class QString const &)" (?setUsernameClientStreamXMPPQAEXABVQStringZ) referenced in function "private: void __thiscall IrisExample::stream_needAuthParams(bool,bool,bool)" (?stream_needAuthParamsIrisExampleAAEX_N00Z)
1>C:Documents and Settingskhalid nimerMy DocumentsVisual Studio 2005ProjectsirisExampleDebugirisExample.exe : fatal error LNK1120: 13 unresolved externals

--
Regards;
KN

Education:
Concordia University
Bachelor of Computer Science (ECP)
Option: Software Systems
Re: trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-20 12:45:37
On Thursday 20 March 2008 9:06 am, K. Nimer wrote:
> the error i mentioned earlier is the result of trying
to execute the
> example in this website
>
> http://psi-im.org
/wiki/Iris_Library
>
> can you tell me what i need to execute this code
correctly with no linking
> errors if any one knows

I've now added a .pro file to the wiki page.  Also I updated
the example to 
initialize QCA.  It builds and runs for me.

-Justin
_______________________________________________
Delta mailing list
Deltalists.affinix.com
http://lists.affinix.com/listinfo.cgi/delta-affinix.com

Re: trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-20 13:05:07
thanks Justin , i didn't try it yet

i am trying it in 5 minutes

but what folders should i include from the iris folder

you know when you go right click on a project then properties

general / c/c++ ; and you add few folders there


and where should place my program ? u remember my last problem , there were errors when i added it to a path that had spaces

so can i create it any where or make sure that there are no spaces?






On Thu, Mar 20, 2008 at 1:45 PM, Justin Karneges < justin-psi2affinix.com">justin-psi2affinix.com> wrote:
On Thursday 20 March 2008 9:06 am, K. Nimer wrote:
&gt; the error i mentioned earlier is the result of trying to execute the
> example in this website
>
> http://psi-im.org/wiki/Iris_Library
>
> can you tell me what i need to execute this code correctly with no linking
> errors if any one knows

I've now added a .pro file to the wiki page.  Also I updated the example to
initialize QCA.  It builds and runs for me.

-Justin
_______________________________________________
Delta mailing list
Deltalists.affinix.com">Deltalists.affinix.com
http://lists.affinix.com/listinfo.cgi/delta-affinix.com



--
Regards;
Khalid Nimer

Education:
Concordia University
Bachelor of Computer Science (ECP)
Option: Software Systems
Re: trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-20 13:43:52
i am sorry Justin but it still doesnt work

this is what i do

- i open visual studio 2005
- make new qt project -> qt consol application
- i include what ever i need to include from the standard libs provided such as QtNetwork and xml and gui
- then i open the main ,and stick the code from wikipedia in there
- my entire project is located in my documents and settings
- my psi/iris is located on c:/psi
- i create a text file called blahproject.pro and add your pro file from wiki to this file and give it the same name irisexample.pro

-i qmake then qmake -tp vc to be able to open it in visual studio 2005

- then run it

it gives me the same errors even tho i include xmpp core and xmpp im and the cute stuff section

please note that i did use install.bat and i took the generated file and put it in the qt folder inside features so that it is done from last time

here is the error
-----------------------------------------------------------------------------------------------------------------------------------------------

1&gt;Linking...
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QCA::Initializer::~Initializer(void)" (__imp_??1InitializerQCAQAEXZ) referenced in function _main
1&gt;main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QCA::Initializer::Initializer(enum QCA::MemoryMode,int)&quot; (__imp_??0InitializerQCAQAEW4MemoryMode1HZ) referenced in function _main
1&gt;main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::Jid::~Jid(void)" (??1JidXMPPQAEXZ) referenced in function __unwindfunclet$??0IrisExampleQAEPAVQObjectZ$0
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::Client::Client(class QObject *)" (??0ClientXMPPQAEPAVQObjectZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::setOldOnly(bool)" (?setOldOnlyClientStreamXMPPQAEX_NZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::ClientStream::ClientStream(class XMPP::Connector *,class XMPP::TLSHandler *,class QObject *)" (??0ClientStreamXMPPQAEPAVConnector1PAVTLSHandler1PAVQObjectZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::AdvancedConnector::AdvancedConnector(class QObject *)" (??0AdvancedConnectorXMPPQAEPAVQObjectZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: class XMPP::Jid & __thiscall XMPP::Jid::operator=(char const *)" (??4JidXMPPQAEAAV01PBDZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall XMPP::Jid::Jid(void)&quot; (??0JidXMPPQAEXZ) referenced in function "public: __thiscall IrisExample::IrisExample(class QObject *)" (??0IrisExampleQAEPAVQObjectZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::Client::connectToServer(class XMPP::ClientStream *,class XMPP::Jid const &,bool)" (?connectToServerClientXMPPQAEXPAVClientStream2ABVJid2_NZ) referenced in function "public: void __thiscall IrisExample::goAuthenticate(void)" (?goAuthenticateIrisExampleQAEXXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::continueAfterWarning(void)" (?continueAfterWarningClientStreamXMPPQAEXXZ) referenced in function "private: void __thiscall IrisExample::stream_warning(int)" (?stream_warningIrisExampleAAEXHZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::Client::start(class QString const &,class QString const &,class QString const &,class QString const &)&quot; (?startClientXMPPQAEXABVQString000Z) referenced in function "private: void __thiscall IrisExample::stream_authenticated(void)&quot; (?stream_authenticatedIrisExampleAAEXXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::continueAfterParams(void)" (?continueAfterParamsClientStreamXMPPQAEXXZ) referenced in function "private: void __thiscall IrisExample::stream_needAuthParams(bool,bool,bool)&quot; (?stream_needAuthParamsIrisExampleAAEX_N00Z)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::setPassword(class QString const &)&quot; (?setPasswordClientStreamXMPPQAEXABVQStringZ) referenced in function "private: void __thiscall IrisExample::stream_needAuthParams(bool,bool,bool)&quot; (?stream_needAuthParamsIrisExampleAAEX_N00Z)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall XMPP::ClientStream::setUsername(class QString const &)&quot; (?setUsernameClientStreamXMPPQAEXABVQStringZ) referenced in function "private: void __thiscall IrisExample::stream_needAuthParams(bool,bool,bool)&quot; (?stream_needAuthParamsIrisExampleAAEX_N00Z)











On Thu, Mar 20, 2008 at 2:05 PM, K. Nimer < stormwaygmail.com">stormwaygmail.com> wrote:
thanks Justin , i didn't try it yet

i am trying it in 5 minutes

but what folders should i include from the iris folder

you know when you go right click on a project then properties

general / c/c++ ; and you add few folders there


and where should place my program ? u remember my last problem , there were errors when i added it to a path that had spaces

so can i create it any where or make sure that there are no spaces?







On Thu, Mar 20, 2008 at 1:45 PM, Justin Karneges < justin-psi2affinix.com" target="_blank">justin-psi2affinix.com> wrote:
On Thursday 20 March 2008 9:06 am, K. Nimer wrote:
&gt; the error i mentioned earlier is the result of trying to execute the
> example in this website
>
> http://psi-im.org/wiki/Iris_Library
>
> can you tell me what i need to execute this code correctly with no linking
> errors if any one knows

I've now added a .pro file to the wiki page.  Also I updated the example to
initialize QCA.  It builds and runs for me.

-Justin
_______________________________________________
Delta mailing list
Deltalists.affinix.com" target="_blank">Deltalists.affinix.com
http://lists.affinix.com/listinfo.cgi/delta-affinix.com



--
Regards;
Khalid Nimer

Education:
Concordia University
Bachelor of Computer Science (ECP)
Option: Software Systems



--
Regards;
Khalid Nimer

Education:
Concordia University
Bachelor of Computer Science (ECP)
Option: Software Systems
Re: trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-20 14:10:57
On Thursday 20 March 2008 11:05 am, K. Nimer wrote:
> thanks Justin , i didn't try it yet
>
> i am trying it in 5 minutes
>
> but what folders should i include from the iris folder
>
> you know when you go right click on a project then
properties
>
> general / c/c++  and you add few folders there

There are a bunch of different include paths.  Keep in mind
that you have to 
also link to the necessary library files as well.  Instead
of manually 
mucking with 20 paths in the Visual Studio IDE, I highly
recommend just using 
a qmake project and referencing the various .pri files (.pri
= qmake profile 
include file) which contain all needed configuration.

With a qmake project, you should be able to generate a
Makefile for use with 
nmake or generate a VS project for use in the IDE.  I've
personally never 
tried generating a VS project with qmake, but maybe someone
else has.

Btw, I just updated the irisexample.pro file from the wiki
again, it needed 
some Windows fixes.

> and where should place my program ? u remember my last
problem , there were
> errors when i added it to a path that had spaces

That was a bug with the QCA installation.  In the future
I'll fix 
installwin.bat to allow setting up QCA in a path that has
spaces.

You shouldn't have this problem in Iris or in your own
programs, so place your 
program anywhere you like.

-Justin
_______________________________________________
Delta mailing list
Deltalists.affinix.com
http://lists.affinix.com/listinfo.cgi/delta-affinix.com

Re: trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-20 14:28:03
this is what i get

-----------------------------
1>------ Build started: Project: irisexample, Configuration: Debug Win32 ------
1&gt;MOC ....xmpp-imxmpp_tasks.h
1>MOC ....includexmpp_task.h
1>MOC ....includexmpp_stream.h
1>MOC ....jabberxmpp_ibb.h
1>MOC ....xmpp-imxmpp_discoinfotask.h
1>MOC ....includexmpp_clientstream.h
1>MOC ....includexmpp_client.h
1>MOC ....includexmpp.h
1>MOC ......cutestufflegacysrvresolver.h
1>MOC ......cutestuffnetworksocks.h
1&gt;MOC ......cutestufflegacyservsock.h
1>MOC ....xmpp-coresecurestream.h
1>;MOC ......cutestufflegacysafedelete.h
1>MOC ....jabbers5b.h
1>MOC ......cutestufflegacyndns.h
1>;MOC ......cutestuffnetworkhttppoll.h
1>MOC ......cutestuffnetworkhttpconnect.h
1>MOC ....jabberfiletransfer.h
1>MOC ....xmpp-corecompressionhandler.h
1>MOC ....xmpp-corecompress.h
1>MOC ......cutestuffutilbytestream.h
1>MOC ......cutestuffnetworkbsocket.h
1>MOC ....xmpp-imxmpp_features.cpp
1&gt;MOC ....xmpp-coresecurestream.cpp
1>MOC ....jabbers5b.cpp
1&gt;Moc'ing main.cpp...
1>The system cannot find the path specified.
1>Project : error PRJ0019: A tool returned an error code from "Moc&#39;ing main.cpp..."
1&gt;Project : warning PRJ0018 : The following environment variables were not found:
1>$(QTDIR)
1>Build log was saved at "file://c:psi-0.11irisexampleirisexampledebugBuildLog.htm&quot;
1>irisexample - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


On Thu, Mar 20, 2008 at 3:10 PM, Justin Karneges < justin-psi2affinix.com">justin-psi2affinix.com> wrote:
On Thursday 20 March 2008 11:05 am, K. Nimer wrote:
&gt; thanks Justin , i didn't try it yet
>
> i am trying it in 5 minutes
>
> but what folders should i include from the iris folder
&gt;
> you know when you go right click on a project then properties
>
&gt; general / c/c++  and you add few folders there

There are a bunch of different include paths.  Keep in mind that you have to
also link to the necessary library files as well.  Instead of manually
mucking with 20 paths in the Visual Studio IDE, I highly recommend just using
a qmake project and referencing the various .pri files (.pri = qmake profile
include file) which contain all needed configuration.

With a qmake project, you should be able to generate a Makefile for use with
nmake or generate a VS project for use in the IDE.  I9;ve personally never
tried generating a VS project with qmake, but maybe someone else has.

Btw, I just updated the irisexample.pro file from the wiki again, it needed
some Windows fixes.

> and where should place my program ? u remember my last problem , there were
>; errors when i added it to a path that had spaces

That was a bug with the QCA installation.  In the future I'll fix
installwin.bat to allow setting up QCA in a path that has spaces.

You shouldn9;t have this problem in Iris or in your own programs, so place your
program anywhere you like.

-Justin
_______________________________________________
Delta mailing list
Deltalists.affinix.com">Deltalists.affinix.com
http://lists.affinix.com/listinfo.cgi/delta-affinix.com



--
Regards;
Khalid Nimer

Education:
Concordia University
Bachelor of Computer Science (ECP)
Option: Software Systems
Re: trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-20 14:27:23
On Thursday 20 March 2008 11:43 am, K. Nimer wrote:
> - i open visual studio 2005
> - make new qt project -> qt consol application
> - i include what ever i need to include from the
standard libs provided
> such as QtNetwork and xml and gui
> - then i open the main ,and stick the code from
wikipedia in there
> - my entire project is located in my documents and
settings
> - my psi/iris is located on c:/psi
> - i create a text file called blahproject.pro and add
your pro file from
> wiki to this file and give it the same name
irisexample.pro
>
> -i qmake then qmake -tp vc to be able to open it in
visual studio 2005
>
> - then run it
>
> it gives me the same errors even tho i include xmpp
core and xmpp im and
> the cute stuff section

First, make sure it is working using nmake:

1) Create a text file called main.cpp, based on the wiki
text.
2) Create a text file called irisexample.pro, based on the
wiki text.
3) Adjust the include() statements in irisexample.pro to
refer to C:/psi
4) Run qmake
5) Run nmake

If this succeeds, then replace steps 4 and 5:

4) Run qmake -tp vc
5) Open the project in VS and build.

-Justin
_______________________________________________
Delta mailing list
Deltalists.affinix.com
http://lists.affinix.com/listinfo.cgi/delta-affinix.com

Re: trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-20 18:43:40
On Thursday 20 March 2008 12:28 pm, K. Nimer wrote:
> 1>Moc'ing main.cpp...
> 1>The system cannot find the path specified.
> 1>Project : error PRJ0019: A tool returned an error
code from "Moc'ing
> main.cpp..."

Do you have main.cpp ?

> 1>Project : warning PRJ0018 : The following
environment variables were not
> found:
> 1>$(QTDIR)

Time to set your QTDIR.  Right-click My Computer ->
Properties -> Environment 
or somewhere in there I believe.  Set the QTDIR environment
variable equal to 
C:Qt4.3.2 or whatever your Qt is.

Putting Qt's bin directory (e.g.
"C:Qt4.3.2bin") into your PATH environment 
variable is probably also a good idea (PATH's value is a
semicolon separated 
list of paths).

If you do all of your Qt business inside of a Qt Command
Prompt, then these 
variables are set for you automatically.  If you want to do
Qt things in any 
other situation (normal Command Prompts, or perhaps the
Visual Studio IDE), 
then you'll want to make the above changes to your
computer.

-Justin
_______________________________________________
Delta mailing list
Deltalists.affinix.com
http://lists.affinix.com/listinfo.cgi/delta-affinix.com

Re: trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-20 18:00:47
On Thu, Mar 20, 2008 at 9:28 PM, K. Nimer < stormwaygmail.com">stormwaygmail.com> wrote:
this is what i get

1>Project : warning PRJ0018 : The following environment variables were not found:
1>$(QTDIR)

You need to set QTDIR, otherwise the build will fail. ; (You may need to set it as a global windows variable for VS to pick it up properly)

--
- Norman Rasmussen
- Email: normanrasmussen.co.za">normanrasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
Re: trying to make a code like justins code (jabber example) but i have errors
user name
2008-03-21 18:36:19
THANK YOU SO MUCH JUSTIN AND NORMAN yes it works
&nbsp;
now my point of all this is to send a message
just like your program , but in your program ur using QDocument
but i wanna use the functions of message without using qdocument

i am trying to do it , but it not working i guess

here is what i do

   ; &nbsp;  XMPP::Jid rec;
 ; &nbsp;  &nbsp;  rec = " mejabber.inm.com">mejabber.inm.com";
 &nbsp;   &nbsp;  XMPP::Message *message;
  ;   &nbsp;  message =  new XMPP::Message(rec) ;
   ;  &nbsp; 
 &nbsp;   &nbsp;  QString hey;
 ; &nbsp;  &nbsp;  hey = "hi&quot;;
 ; &nbsp;  &nbsp;  message-&gt;setBody(hey,hey);
&nbsp; &nbsp;  &nbsp;  message-&gt;setTo(rec);
 &nbsp;   &nbsp;  m_pClient->sendMessage(*message);
 

which the above code i wasnt able to send any messages , i tested it many times but it wasnt working


 
On Thu, Mar 20, 2008 at 4:00 PM, Norman Rasmussen < normanrasmussen.co.za" target="_blank">normanrasmussen.co.za> wrote:
On Thu, Mar 20, 2008 at 9:28 PM, K. Nimer < stormwaygmail.com" target="_blank">stormwaygmail.com> wrote:
this is what i get

1>Project : warning PRJ0018 : The following environment variables were not found:
1&gt;$(QTDIR)

You need to set QTDIR, otherwise the build will fail. ; (You may need to set it as a global windows variable for VS to pick it up properly)

--
- Norman Rasmussen
- Email: normanrasmussen.co.za" target="_blank">normanrasmussen.co.za
- Home page: http://norman.rasmussen.co.za/

_______________________________________________
Delta mailing list
Deltalists.affinix.com" target="_blank">Deltalists.affinix.com
http://lists.affinix.com/listinfo.cgi/delta-affinix.com




--
Regards;
Khalid Nimer

Education:
Concordia University
Bachelor of Computer Science (ECP)
Option: Software Systems
[1-10] [11-20] [21-30] [31-40]

about | contact  Other archives ( Real Estate discussion Medical topics )