Re: [Dev-C++] A question about acmDriverAdd and acmDriverRemove APIs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-10-17 21:05:27
|
Hi Gartano, In my experience with this kind of occurrence, usually it means more than one library file contains the same definition and your linker parameter -lmsacm32 is probably pointing to the wrong one. That is why I recommend using grep (FINDSTR in MS Windows), used from the root of the dev-cpp library directories to find all libraries that may contain this reference. Alternatively, it may be that libmsacm32.a library file is not in a default path, i.e. ~/dev-cpp/lib or that you haven't included it's directory in Project Options->Directories->Library Directory tab if it's not in a default path. Gaetano Sferra <gae...@gm...> wrote: Hello, I need to use the audio compression manager and add a custom compressor to it using the acmDriverAdd() API. I've included the msacm.h header file in my project and specified to the linker to use the "libmsacm32.a" library file throught the project option dialogs. In my project I also use others ACM APIs such as acmDriverOpen(), acmDriverClose() etc... The matter is the linking step: [Linker error] undefined reference to `acmDriverAdd' [Linker error] undefined reference to `acmDriverRemove' Using a hexadecimal editor I've taked a look in the "libmsacm32.a" file and there are the definitions for acmDriverAdd and acmDriverRemove (with or without UNICODE support). What's wrong? Thank you, -- Gaetano Sferra PS: I've already tryed to put an '_' or "__" before the function names but it's not useful, the same errors occurs. <snip> Alfred P. Reaud |