Results 1 to 2 of 2

Thread: QMake and GSoap

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QMake and GSoap

    Hi, im trying to compile my QT solution with GSoap.

    I have a GSoap C++ app compiling ala:

    g++ -I/root/gsoap-linux-2.7/ -I/root/gsoap-linux-2.7/import -o test.o test.cpp soapC.cpp soapClient.cpp /root/gsoap-linux-2.7/stdsoap2.cpp

    I just downloaded the soap 2.7 tar file for linux, extracted it and started to use it.

    I now want to simply add GSoap support to my QMake file (.pro file)

    In my .pro file I have:

    sources = gatekeeper.cpp... etc
    sources += soap/soapC.cpp soap/soapClient.cpp

    headers = gatekeeper.h .. etc

    config += thread

    includepath += /usr/include
    includepath += /root/gsoap-linux-2.7/
    includepath += /root/gsoap-linux-2.7/import

    unix:libs += -L/usr/lib64


    So yeah, I don't have any additional headers or libraries included... so the error im getting is:

    miltiple definition of 'namespaces'

    now the variable namespaces is declared extern in stdsoap2.h and as an array in my SoapService.nsmap file... but I'm not sure how to fix this in my QMake file... what's going?

  2. #2
    Join Date
    Apr 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Red face Re: QMake and GSoap

    nevermind... i was including the ServiceSoap.nsmap in a class header that was instanciated more than once... there was a variable called 'namespaces' inside of that... even though I added #ifndef #define.... #endif to that file it still somehow saw multiple copies of it... go figure!

    i just moved the #include into my main.cpp file and now it works fine :| weird world

Similar Threads

  1. qmake: how to call gsoap
    By niko in forum Newbie
    Replies: 4
    Last Post: 26th April 2008, 11:03

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
  •  
Qt is a trademark of The Qt Company.