Matthew Lindsay
2015-Aug-31 04:16 UTC
[flac-dev] error LNK2001: unresolved external symbol _fopen_utf8
Hi everyone, I'm trying to get started with libFLAC++. I've built the static libs libFLAC, libFLAC++ and libogg using VS2010 on windows 7. However when I try build the example project "example_cpp_encode_file" I get a lot of linker errors. I checked linker/input/additional dependencies and added the paths for libFLAC, libFLAC++ and corrected the path for libogg. Now I'm just getting one link error: libFLAC_static.lib(stream_encoder.obj) : error LNK2001: unresolved external symbol _fopen_utf8 Any help would be much appreciated. Thanks, Matt
lvqcl
2015-Aug-31 10:03 UTC
[flac-dev] error LNK2001: unresolved external symbol _fopen_utf8
Matthew Lindsay wrote:> libFLAC_static.lib(stream_encoder.obj) : error LNK2001: unresolved > external symbol _fopen_utf8 > > Any help would be much appreciated.You also need win_utf8_io static library (as fopen_utf8 is defined in src/share/win_utf8_io/win_utf8_io.c) Or you can simply open FLAC.sln and build example_cpp_encode_file project from there.