sorry i must not have been clear. i know my posting was a little wordy.<br><br>"whatever its called when you build it" is a little vague. can you clarify.<br><br>i was under the impression speex was done in clean C and could be built from <span style="font-style: italic;">just</span> the source files downloaded regardless of platform. I am running on windows xp using devc++ ide which uses gcc and mingw underneath.<br><br>do i need to link with a .lib file? if so where is it located? i checked in win32 folder<br>and all i found were <span style="font-weight: bold;">.dsp</span>, <span style="font-weight: bold;">dsw</span> and <span style="font-weight: bold;">.def</span> files which are not recognised. what are needed are a or .lib files. <br><br>if i don't need to link with a windows specific .lib or .a file. then what is the source<br>files for these functions. i traced the program state and found the calls were made<br>from speex.h and the speex.c and bits.c had the
definitions. however including <br>speex.c and bits.c in the project still gave linker errors. where are the source files?<br><br>thanks,<br>caroundw5h<br><br><b><i>Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> It's not an include file missing. This is a link error. You need to link with<br>libspeex (or whatever it's called when you build it).<br><br> Jean-Marc<br><br><br>Quoting Caroundw5h <caroundw5h@yahoo.com>:<br><br>> Hi Jean,<br>><br>> I'm trying to compile the encode.c and or the test programs that are on the<br>> site and in libspeex respectively. however, i keep getting some undefined<br>> references to the basic speex functions(see compiler log). a query on google<br>> showed that this question was posed but no answer given. I traced them down<br>> to speex.c. however when i build my project i still get
these undefined<br>> referneces.<br>><br>> I'm currently developing a voip application and i've used portaudio for audio<br>> signal capture. they have a basic documentation on compiling for the basic<br>> platform, listing the common headers and sourcefiles that are needed. I'm in<br>> no way disparaging you guys and the work you've done on speex, but does speex<br>> have this? just trying to build a simple test program has been taking me days<br>> now. Perhaps a restructuring of the folders in the src download. for example<br>> i've noticed the tests programs all in the libspeex folder. maybe a separate<br>> folder is in order such as speex\tests, speex\common, and perhaps the headers<br>> and source file could be in the same folder ex speex\API.<br>><br>> whatever you guys decide i appreciate the work you've done on speex and<br>> turned to it because it was cited as a very decent codec specifically for<br>>
COIP<br>><br>> Please let me know what are the common folders to link for an application,<br>> and whether or not there is any other documentation about speex i'm missing.<br>> thanks.<br>><br>> caroundw5h<br>><br>> compile log:<br>><br>> Compiler: Default compiler<br>> Building Makefile: "G:\Code\Projects\X3\X3_TESTS\Makefile.win"<br>> Executing make clean<br>> rm -f ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o speexTest.exe<br>><br>> gcc.exe -c ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.c -o<br>> ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o -I"C:/Dev-Cpp/include"<br>><br>> gcc.exe ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o -o<br>> "speexTest.exe" -L"C:/Dev-Cpp/lib"<br>><br>> ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o(.text+0x36):speexTest.c:<br>> undefined reference to `speex_nb_mode'<br>>
../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o(.text+0x3b):speexTest.c:<br>> undefined reference to `speex_encoder_init'<br>> ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o(.text+0x6b):speexTest.c:<br>> undefined reference to `speex_encoder_ctl'<br>> ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o(.text+0x96):speexTest.c:<br>> undefined reference to `speex_bits_init'<br>> ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o(.text+0x118):speexTest.c:<br>> undefined reference to `speex_bits_reset'<br>> ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o(.text+0x13a):speexTest.c:<br>> undefined reference to `speex_encode'<br>> ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o(.text+0x15a):speexTest.c:<br>> undefined reference to `speex_bits_write'<br>> ../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o(.text+0x1c9):speexTest.c:<br>> undefined reference to `speex_encoder_destroy'<br>>
../X3_DEPENDANTS/speex_1.2beta1/libspeex/speexTest.o(.text+0x1d7):speexTest.c:<br>> undefined reference to `speex_bits_destroy'<br>> collect2: ld returned 1 exit status<br>><br>> make.exe: *** [speexTest.exe] Error 1<br>><br>> Execution terminated<br>><br>><br>> ---------------------------------<br>> Ahhh...imagining that irresistible "new car" smell?<br>> Check outnew cars at Yahoo! Autos.<br><br><br><br></caroundw5h@yahoo.com></blockquote><br><p> 
<hr size=1>Ahhh...imagining that irresistible "new car" smell?<br> Check out
<a href="http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-">new cars at Yahoo! Autos.</a>