Re: [Dev-C++] A question about acmDriverAdd and acmDriverRemove APIs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Gaetano S. <gae...@gm...> - 2005-10-18 07:00:25
|
Hi Alfred,
the only one library used in my project is the "libmsacm32.a", this
library is the only one that contains acmDriverAdd/acmDriverRemove
APIs ("grep docet"), it is in the default library path (dev-cpp/lib)
so no others directories should be included and the linker have the
"-lmsacm32" parameter setted on. Everything seems to be correct, there
are other APIs in the "libmsacm32.a" (such as acmDriverOpen) and I'm
using some of those without any linking problems (but I still need of
acmDriverAdd, without this one the entire project is unuseful).
Thank you,
--
Gaetano Sferra
2005/10/17, Alfred P. Reaud <al...@ya...>:
>
> 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 libra=
ry
> 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 Director=
y
> 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 er rors occurs.
> <snip>
>
>
>
>
> Alfred P. Reaud
|