Current location - Health Preservation Learning Network - Slimming men and women - Hello, I want to use a static library compiled by vs20 10 in qt now.
Hello, I want to use a static library compiled by vs20 10 in qt now.
For C language, the connection library used to connect dll can be universal, and dll can also be universal. But at present, the static library is not universal. The general way to deal with it is to compile it into a DLL, then generate a linked lib(a) library, import the project, or use libtdl to dynamically load the DLL file.

The reason why static libraries are not universal is that the basic libraries are so different that objdump can't even recognize the obj file format compiled with vc default options. In addition, reimp is not used for this purpose, but provides a transformation for dll connection lib(a) files.

For C++, all binary codes are not universal, after all, the name decoration is very different.