[EMAIL PROTECTED] writes:

> However, I still get the following linker error:
>         qtsample.o: In function `WinMain':
>         /usr1/home/mogul/quicktime/test/qtsample.c:254: undefined reference to
> `InitializeQTML'
> 
> If I look at the symbols I have this:
>         > nm -o *o | grep InitializeQTML
>         libqtmlclient.so:00028770 T QTMLCLIENTDLL_InitializeQTML
>         qtmlclient.o:00000000 T QTMLCLIENTDLL_InitializeQTML
>         qtmlclient.spec.o:         U QTMLCLIENTDLL_InitializeQTML
>         qtsample.o:         U InitializeQTML
> 
> Plainly the QTMLCLIENTDLL_InitializeQTML is being compiled in, but what do I
> have to do to satisfy the InitializeQTML reference and make sure that the
> QTMLCLIENTDLL_ version gets called?

The function has to be named InitializeQTML, and the entry in the spec
file has to be:

 995 cdecl InitializeQTML(long) InitializeQTML

Basically as long as we are using standard ELF linking to resolve
symbols, the function name must be the same as the export name
specified in the spec file. This will change once we use import tables
to resolve symbols in .so dlls.

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to