Results 1 to 3 of 3

Thread: Multiple Definition errors in moc_<Obj>.cpp and moc_<Obj>_obj.cpp

  1. #1
    Join Date
    Jan 2006
    Location
    Berkeley California
    Posts
    109
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Multiple Definition errors in moc_<Obj>.cpp and moc_<Obj>_obj.cpp

    Qt ver 4.2.3: I'm getting multiple definition errors as in the attached file and can't figure out what I've done to cause them.

    ???

    Thanks, Doug
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Multiple Definition errors in moc_<Obj>.cpp and moc_<Obj>_obj.cpp

    Check whether you don't have duplicated entries in SOURCES and HEADERS variables in your .pro file.

  3. #3
    Join Date
    Jan 2006
    Location
    Berkeley California
    Posts
    109
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Multiple Definition errors in moc_<Obj>.cpp and moc_<Obj>_obj.cpp

    That was it, I have had to put the development down for a month and I don't know why I had identical duplicate files, one named ctl_cfg_lnk.h and ctl_cfg_lnk_obj.h

    Thanks

Similar Threads

  1. Getting multiple definition error from qatomic_x86_64.h
    By markcole in forum General Programming
    Replies: 1
    Last Post: 30th August 2007, 19:39
  2. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  3. Replies: 25
    Last Post: 15th January 2006, 00:53

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.