Answer the question
In order to leave comments, you need to log in
How to link MinGW lib with MSVC? Or how to compile STL Filesystem with MinGW 8.1.0?
I'm trying to link FFmpeg with the project under Windows (via extern "C"
). With MinGW 8.1.0 in the test project it turned out to be successfully linked, with MSVC - an error. The problem is that I'm using the STL Filesystem in the project, which doesn't seem to exist in MinGW, at least I can't compile with it. I'm using CMake and the 17th standard is installed through it, so that's not the issue. Tell me, how can I solve this problem? Thanks a lot.
PS: In general, in the dev assembly downloaded from here , are there def files that seem to solve this problem, or not?
Answer the question
In order to leave comments, you need to log in
It seems to have turned out, it was linked, there is no error. Here is what I did:
lib /machine:x64 /def:your_lib.def
or lib /machine:x32 /def:your_lib.def
, after which it will display a message:Creating library your_lib.lib and object your_lib.exp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question