+ 3

lib file

hello guys.. want to ask, can i use lib compiled in visual studio(msvc) and link it using g++ ? thanks in advance :)

17th Dec 2020, 12:31 PM
durian
durian - avatar
3 Respostas
+ 1
Lily Mea if only C static .lib it should link with mingw. for C dll you may need to produce a .a lib file from msvc dll. for C++ static lib/dll, not possible. you can verify the above, by trying it yourself.
17th Dec 2020, 1:00 PM
Flash
+ 2
yes, C++ static library of the same compiler of different versions won't work, however, the workaround is using dll. You can easily produce a .lib/.a from dll (old version) that you can link with your current compiler.
17th Dec 2020, 3:05 PM
Flash
+ 1
ok..thank you
17th Dec 2020, 2:13 PM
durian
durian - avatar