• Advertisement
Sign in to follow this  

Win32 OLE: IID_IPicture undefined

This topic is 4637 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am currently having trouble compiling my code with the function "OleLoadPicturePath" utilizing "IID_IPicture" without obtaining a linker error:[Linker error] undefined reference to `IID_IPicture' I have defined the header file "olectl.h" as well as the library file "liboleaut32.a". I am utilizing Dev-C++ as my development environment with GCC as my compiler. Is there something else I should include or define? Thank you.

Share this post


Link to post
Share on other sites
Advertisement
I would link to these three libs. That header should be enough.

ole32.lib
oleaut32.lib
uuid.lib

[edit]
You might just need the uuid.lib if its saying it can't find IID_IPicture and thats all its complaining about.
[/edit]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement