[Flac-dev] Linking against libFLAC_static.lib using MSVC

Dan Sully daniel at electricrain.com
Sat Jul 17 19:26:07 PDT 2004


I'm having a hell of a time linking against libFLAC_static.lib on Win32:

link -out:blib\arch\auto\Audio\FLAC\Decoder\Decoder.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf  -libpath:"C:\Perl\lib\CORE"  -machine:x86 Decoder.obj libflacsupport.lib C:\Perl\lib\CORE\perl58.lib C:\Perl\lib\CORE\libFLAC_static.lib -def:Decoder.def
Creating library blib\arch\auto\Audio\FLAC\Decoder\Decoder.lib and object blib\arch\auto\Audio\FLAC\Decoder\Decoder.exp
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_process_until_end_of_metadata
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_get_state
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_init
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_set_eof_callback
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_set_length_callback
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_set_tell_callback
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_set_seek_callback
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_set_client_data
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_set_error_callback
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_set_metadata_callback
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_set_write_callback
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_set_read_callback
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_delete
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_finish
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_new
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_get_bits_per_sample
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_get_channels
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_process_single
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_get_decode_position
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_get_sample_rate
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_reset
Decoder.obj : error LNK2001: unresolved external symbol __imp__FLAC__seekable_stream_decoder_seek_absolute
blib\arch\auto\Audio\FLAC\Decoder\Decoder.dll : fatal error LNK1120: 22 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

Any ideas here? The only reference I could find to this error, was a busted
exports.h, but that appears to have been fixed.

Thanks.

-D
-- 
"A good messenger expects to get shot." --Larry Wall




More information about the Flac-dev mailing list