Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Adding libcmt.lib conflicts with libmingw32.a default lib

$
0
0
Hi all, I am trying to port a MS visual studio 9 VC++ console project into Qt. For the most part it is going very well. However I have to use a 3rd party library called _apcoambe.lilb. This library seems to rely on some mathematical functions to do with 64-bit multiplication/shifts. The functions it uses are _allmul, I believe that prototype for that is somthing like: INT64 _allmul(INT32, INT32) After some digging around I found that this function exists in the MsDev library libcmt.lib. So I added that to my project as well, see .pro file snippet: LIBS += -Llib LIBS += -l_apcoambe LIBS += -llibcmt However this gives me errors like: libmingw32.a(lib32_libmingw32_a-merr.o):merr.c:(.text+0x60): multiple definition of `_matherr' lib/libcmt.lib(f:/dd/vctools/crt_bld/SELF_X86/crt/prebuild/build/INTEL/mt_obj/_matherr_.obj):(.text[__matherr]+0x0): first defined here c:/qt/qt5.0.2/tools/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/../lib So there seems to be some over-lap with the microsoft libraries and the QT/Mingw libraries. I am using Qt SDK 5.0.2 The easiest way for me would be if the mingw compiler has these functions _allmul somewhere that I can include :o But I am open to any suggestions for how to resolve this issue. Thanks Fodder

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>