Where's MmInitialize?

I’m incorporating a simple audio player into a project – I’ve used the
sample code provided under “Using Graphs”/“Run MP3s” as the base.
Trouble is, when I attempt to link this code I get an “undefined
reference to ‘MmInitialize’” error. I am linking with “-laoi” and
“-lmmedia”. I’d expect to the MmInitialize function to be in mmedia,
with all the other “Mm…” functions, but apparently it’s not. Where is
the MmInitialize function actually located? What additional libraries
do I need to actually get this to link?

This is 6.2.1 non-commercial.

Thanks.

  • Joshua B. Helm
    Forefront Technologies, Inc.

Joshua B. Helm wrote:

I’m incorporating a simple audio player into a project – I’ve used the
sample code provided under “Using Graphs”/“Run MP3s” as the base.
Trouble is, when I attempt to link this code I get an “undefined
reference to ‘MmInitialize’” error. I am linking with “-laoi” and
“-lmmedia”. I’d expect to the MmInitialize function to be in mmedia,
with all the other “Mm…” functions, but apparently it’s not. Where is
the MmInitialize function actually located? What additional libraries
do I need to actually get this to link?

This is 6.2.1 non-commercial.

Thanks.

  • Joshua B. Helm
    Forefront Technologies, Inc.

Hi Joshua,
in the 6.2.1 release, the MmInitialize() function is only in the static
version of the mmedia library.

you should link: -l aoi -Bstatic -lmmedia -Bdynamic

Regards,
Angelo.