Qt: warning LNK4042 compiled object is specified more than once, has ignored the extra specified .... segmentLayout.obj

Solution:

step:  

  1. segmentLayout.h, segmentLayout.cpp deleted (no permanently delete) from the project, and clean-up project

  2. In the code file directory renaming segmentLayout, such as segmentLayout_a.h, segmentLayout_a.cpp, adding the renamed file to the project, the reference #include "segmentLayout.h" change the #include "segmentLayout_a.h", re-compile the project

  3. delete segmentLayout_a.h, segmentLayout_a.cpp from the project, and clean-up project

  4. The _a rename the file to restore, re-added to the project, and update the header file references, recompile the project

 

Problems get! !

Guess you like

Origin www.cnblogs.com/azbane/p/11364090.html