fdk-aac
fdk-aac copied to clipboard
Trouble when cpp file use libfdk-aac.a in vs2013
Use mingw to complie the fdk-aac,
./configure --enable-share --disable-static
And release the libfdk-aac.a
Use #pragma comment(lib, "libfdk-aac.a")
in a cpp file, an complie it via vs2013, I got libfdk-aac.a(fft.o) : fatal error LNK1143: invalid or corrupt file: no symbol for COMDAT section 0xF
I need to use the static lib in my software. How can I deal with it?
If you've compiled with --enable-shared --disable-static
, no libfdk-aac.a
should be created. If you have it, it's a leftover from an earlier build with the static library enabled.
You can't build a static library with mingw tools and use it with MSVC. Either you link against a DLL built with mingw, or you build the static library with MSVC tools.
To build a static library with MSVC, open a developer command prompt and do nmake -f Makefile.vc
in the fdk-aac directory.