Reputation: 1
I want to add my ffmpeg to the vs2019(community edition),and here's my step.
#define __STDC_CONSTANT_MACROS
extern "C" {
#include "libavcodec/avcodec.h"
}
int main() {
printf("%s", avcodec_configuration());
return 0;
}
Upvotes: 0
Views: 240
Reputation: 1
Well, thanks to john above, I'v solved this problem. Go your project properties and change platform to the x64, then re-configure all build you did before,then it works.
Upvotes: 0
Reputation: 468
You have to link with the export .lib
files. Each ffmpeg
DLL should have a corresponding .lib
file, which is what should actually go into the linker options. You then have to make sure the DLLs are in the same folder as the output .exe
binary.
Upvotes: 1