I am creating one on a 32 bit SLES10 machine. Using GCC 3.4.2
There is a sample error here
`.rodata 'is referenced in the' l8245 'section CMFFiles / myproj.dir / c ++ / util / MyObj o `defined in the section rejects .gnu.linkonce.t._ZN5boost9re_detail9reg_grep2INS0_21grep_search_predicateIPKcSaIcEEES4_cNS_12regex_traitsIcEES5_S5_EEjT_T0_SA_RKNS_14reg_expressionIT1_T2_T3_EEjT4_ 'of CMakeFiles / myproj.dir / c ++ / util / MyObj.o
This is usually 2 different. Being compiled with different compiler switch due to CPP - but using the same template. Generated template instances they define / can vary in context, and if the chosen is not immediately defined / does not refer to exact same symbols, those who have been left, you may get this error.
Validate all your CPPs are defined and defined by the exact same compiler switch. If this is not possible, try re-ordering .obj files on the linky commandline, especially the .obj files in the end of the error message or at the beginning of the .obj file list.
Edit:
In addition, if you are linking to prebuilt c ++ libraries, see if you used the compiler switch to create these libraries Can duplicate
Comments
Post a Comment