#70 Link error against libFLAC++_static.lib on VS2005

open
Josh Coalson
None
5
2006-12-09
2006-12-09
Shao Hao
No

I just failed to link against your "libFLAC++_static.lib"

I downloaded your "flac-1.1.3-devel-win.zip" and define "FLAC__NO_DLL" to try to link to your "libFLAC++_static.lib" in VS2005, but I failed!

Here is the link error msg from VC 8.0:
"ERROR 32 error LNK2019: Unresolved external symbol "__declspec(dllimport) char const `private: static char const * __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Nullstr(void)'::`2'::_C" (__imp_?_C@?1??_Nullstr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@CAPBDXZ@4DB),Which is involed in function "public: virtual enum FLAC__StreamDecoderInitStatus __thiscall FLAC::Decoder::File::init(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?init@File@Decoder@FLAC@@UAE?AW4FLAC__StreamDecoderInitStatus@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) libFLAC++_static.lib
"

It seemed that the function "Nullstr" is missing!!

Discussion

  • Josh Coalson
    Josh Coalson
    2006-12-09

    • assigned_to: nobody --> jcoalson