Results 1 to 4 of 4

Thread: Qt + gSoap + Visual Studio 2005

  1. #1
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Qt + gSoap + Visual Studio 2005

    Hi,

    someone knows how to build the code created by gSoap in Visual Studio 2005?

    I'm trying it but it give me a lot of errors like:
    Error 1 error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * __cdecl soap_new_std__string(struct soap *,int)" (?soap_new_std__string@@YAPAV?$basic_string@DU?$ch ar_traits@D@std@@V?$allocator@D@2@@std@@PAUsoap@@H @Z) already defined in soapClientLib.obj soapServerLib.obj

    Error 3 error LNK2005: "public: virtual void __thiscall _ns1__GetMessageStatusResponse::soap_serialize(str uct soap *)const " (?soap_serialize@_ns1__GetMessageStatusResponse@@U BEXPAUsoap@@@Z) already defined in soapClientLib.obj soapServerLib.obj

    Error 320 error LNK2019: unresolved external symbol _send@16 referenced in function _fsend stdsoap2.obj

    Error 343 error LNK2001: unresolved external symbol _namespaces stdsoap2.obj
    Bye, thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt + gSoap + Visual Studio 2005

    Looks like you have some symbol redefinitions. Did you wrap all headers into #ifndef-#define-#endif statements?

  3. #3
    Join Date
    May 2007
    Posts
    1

    Default Re: Qt + gSoap + Visual Studio 2005

    hi everybody,

    This is a post more for gSOAP than Qt.

    It's about the "error LNK2001: unresolved external symbol _namespaces" reported by xgoan.

    Since this is one of the few places i've found mentioning this problem, i just want to post the solution for anyone suffering the same problem.

    The fix is to #include the nsmap file that is generated by gSOAP in your own cpp files:

    #include "soapH.h" // or whatever it is called, you must already have it
    #include "whatever.nsmap" // this is what you have to add to fix the problem

    The solution was originally posted in an spanish forum:
    http://www.programacion.com/foros/37/msg/171805

    enjoy!

  4. #4
    Join Date
    Dec 2007
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt + gSoap + Visual Studio 2005

    Hi,

    there is also a Qt based application server that supports XML-RPC based on web services: FEAST.

    http://trolltech.com/partners/direct...ers/clausmark/

    http://dist.trolltech.com/pdf/Clausm...nBrief_web.pdf

    http://www.clausmark.com/feast_en.phtml

    FEAST handles the concurrent user situation as well as taking care of
    backend data sources with connection pooling etc. Actually FEAST is more
    then a server; it is development framework for distributed applications
    based on Qt.

    FEAST uses SOAP HTTP as the communication protocol (it does not rely on
    gSOAP though and does away with several of the limitations of gSOAP) so it is easy to use over the internet through firewalls
    etc.

    /Niklas

Similar Threads

  1. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41
  2. Qt 4.1.0 on Visual Studio 2005
    By nErnie in forum Installation and Deployment
    Replies: 8
    Last Post: 6th July 2006, 00:56
  3. Menu shortcuts in Visual Studio?
    By kw in forum Qt Programming
    Replies: 1
    Last Post: 16th March 2006, 23:30
  4. Qt Designer & Visual Studio 2005
    By pSiCho in forum Qt Tools
    Replies: 6
    Last Post: 9th February 2006, 13:40
  5. Where does VS save its inviornment vars?
    By high_flyer in forum Installation and Deployment
    Replies: 5
    Last Post: 4th February 2006, 10:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.