Georg Schmalz
2006-Jan-12 15:29 UTC
[Speex-dev] Problem compiling testenc.c on WinXP(newbie)
Hello, I want to compile testenc.c with Borland C/C++ compiler, but get a lot of errors. What's wrong? Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland testenc.c: Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_speex_encoder_init' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_decoder_init' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_std_char_handler' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_std_mode_request_handler' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_decoder_ctl' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_encoder_ctl' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_nb_mode' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_mode_query' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_bits_init' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_encode_int' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_bits_write' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_bits_rewind' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_decode_int' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_bits_reset' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_encoder_destroy' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_decoder_destroy' referenced from D:\SPEEX\TESTENC.OBJ Error: Unresolved external '_speex_bits_destroy' referenced from D:\SPEEX\TESTENC.OBJ
Micky Latowicki
2006-Jan-17 23:50 UTC
[Speex-dev] Problem compiling testenc.c on WinXP(newbie)
What's wrong is that the linker is not provided with the speex library to link against. I don't use borland, so I don't know how you would fix that. maybe something like passing the flag -lspeex would help, see the linker's help. If you do that and get an error about the linker not able to open libspeex, then you should also specify the location of the libspeex file. Maybe someone more familiar with borland would know.