PDA

View Full Version : Multiple Definition errors in moc_<Obj>.cpp and moc_<Obj>_obj.cpp



Doug Broadwell
26th October 2007, 23:30
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

jacek
26th October 2007, 23:42
Check whether you don't have duplicated entries in SOURCES and HEADERS variables in your .pro file.

Doug Broadwell
27th October 2007, 19:10
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