Results 1 to 2 of 2

Thread: Why am I getting multiple definition of with different namespaces?

  1. #1

    Default Why am I getting multiple definition of with different namespaces?

    A little bit of background first. I'm using the WSF C++ framework to generate C++ code from a WSDL file. For those that don't know this means sending/receiving XML message from a webservice is handle automatically and I don't need to touch XML at all.

    I have generated C++ code for 2 different web services using their respective WSDL files - all good so far. However the names of some of the generated classes overlap between the two services and this is where my problems start.

    Even though the definitions of my class are in DIFFERENT namespaces Qt linker still seems the think that I have defined them twice! See below for my generated code:

    One random method I have been looking at is AbstractRequestType::resetMessageID(), I figure if I can fix this all the rest should be fixed as well.

    WEB SERVICE A:

    Header: http://pastebin.com/R95PYUDk
    Source: http://pastebin.com/4swyccQg

    WEB SERVICE B:

    Header: http://pastebin.com/uFqHRZLE
    Source: http://pastebin.com/4spyVDri

    (apologies about the code format - it's just the way it has been generated by the tool)

    EDIT::: And the log file ofcourse: http://pastebin.com/qLyWqTXV

    I have edited the middle bits of the log file out because it was just similar errors but on different files.

    You can see that Service A is in namespace eblbasecomponents_apis_ebay, and Service B is in ns_trading_service - so there should be no nameclash but there is!

    Could someone please tell me how I can fix this?
    Last edited by rash.m2k; 22nd September 2012 at 18:24.

  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: Why am I getting multiple definition of with different namespaces?

    Your project file is wrong. You can see that your log points out that many directives are being ignored by Make.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Multiple definition of a function (MinGW)
    By spirt in forum General Programming
    Replies: 6
    Last Post: 14th June 2011, 13:34
  2. Non-existing multiple definition bug
    By uGin in forum Qt Programming
    Replies: 1
    Last Post: 17th May 2011, 16:53
  3. Replies: 1
    Last Post: 17th May 2011, 16:12
  4. qmake - multiple definition ?
    By zaphod77 in forum Installation and Deployment
    Replies: 3
    Last Post: 6th April 2011, 12:11
  5. Multiple definition of a variable?
    By T0bi4s in forum Newbie
    Replies: 5
    Last Post: 14th January 2010, 22:13

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.