[flac-dev] flac 1.3.0pre2 pre-release

Erik de Castro Lopo mle+la at mega-nerd.com
Mon Mar 11 12:21:50 PDT 2013


Janne Hyvärinen wrote:

> With the sources as they are compiling produces these errors (this on 
> MSVC 2012 SP1 Express):
> 
> Error    1    error LNK2001: unresolved external symbol 
> _FLAC__bitreader_bits_left_for_byte_alignment 
> G:\Programming\flac-1.3.0pre2\src\flac\libFLAC_static.lib(stream_decoder.obj) 

Ben Alison is working on tthis. Lets allow that work to come to a conclusion.


> Error    9    error LNK2001: unresolved external symbol 
> _safe_malloc_mul_2op_ 
> G:\Programming\flac-1.3.0pre2\src\flac\utf8_static.lib(utf8.obj) flac
> Error    10    error LNK1120: 9 unresolved externals 
> G:\Programming\flac-1.3.0pre2\objs\release\bin\flac.exe    flac
> 
> Error 9 is related to the location of _safe_malloc_mul_2op_. It's 
> easiest to fix by having the code in utf8.c.

But that function is defined in src/share/grabbag/alloc.c and should
be getting linked into flac.exe. It doesn't need to be redefined in
utf8.c. Specifically, I think alloc.c should be added as one of the
build files in

    src/share/grabbag/grabbag_static.vcproj
    src/share/grabbag/grabbag_dynamic.vcproj

Please try this and if that fixes it, please send a patch containing
only that change.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list