简体   繁体   中英

Are Mingw32 and TDM-GCC compatible?

I've been using MinGW32 to compile libraries and link statically to my programs.

I would like to know if I change the compiler to TDM-GCC would my old libraries link with new programs compiled with TDM? Or should I compile everything with the new compiler?

Thanks

The answer to your question largely depends on what the libraries are, and how you link to them.

If the libraries are import libraries for DLLs, then you may not need to re-compile. However, if the DLLs need to link to the same C++ runtime as the host executable, then you will need to re-compile if your host executable uses a different runtime from the DLL.

If the libraries are static libraries then you will need to re-compile if the static library is linked against a different C++ runtime from the program into which it is linked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM