howto fix bug 13462

Reece Dunn msclrhd at googlemail.com
Sun Sep 28 14:47:24 CDT 2008


2008/9/28 Louis Lenders <xerox_xerox2000 at yahoo.co.uk>:
>
>> > +//#include "ctxtcall.h"
>>
>> Please resend the patch adding the IDL file for this generated file
>> and get it in before sending this patch adding the tests.
>>
>
> Hi Rob, thanks very much for the comments. I'll do the above , but i have
> problems when I uncomment the above include, i get:
>
> compobj.c:(.text+0x394b): undefined reference to `IID_IContextCallback'
> /usr/bin/ld: compobj.o: relocation R_386_GOTOFF against undefined hidden symbol
> `IID_IContextCallback' can not be used when making a shared object
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> winegcc: gcc failed
> make[2]: *** [ole32_test.exe.so] Error 2
>
> Adding the two lines below
>
> #define INITGUID
> #include "guiddef.h"
>
> fixes the compiler error, but i have the feeling something is wrong with my
> setup or so, or is this a "normal" error?

You'll need to add the .lib file that contains the IContextCallback GUID.

MSDN suggests that this is in ole32.lib
(http://msdn.microsoft.com/en-us/library/ms682253(VS.85).aspx), so
referencing that should fix it.

If it does not, you'll need to pull in those two lines above.

NOTE: this should be confirmed by building the test with the Windows SDK.

- Reece



More information about the wine-devel mailing list