Name: Anonymous 2012-10-14 17:31
So I'm trying to load these jpegs natively with that Windows Imaging Component. What I'm getting is
Then I do
But wait, there's more. I've got that gendef tool (because dlltool just threw ``no symbols'') and generated a def file. gcc actually linked that crap, but when I run my program, this guy pops out:
That's not the only WinAPI function I can't link against, there're some more. And I haven't even told about ``complete'' w32api headers, which I have to constantly update. Now tell me /prog/, how can I fucking make a library which would work fine with gcc? Maybe installing that Windows SDK?
undefined reference to _WICConvertBitmapSource@12, and there's no libwindowscodecs.a. Now I make a wincodec.def file like this:LIBRARY WindowsCodecs.dll
EXPORTS
WICConvertBitmapSource@12Then I do
dlltool -d wincodec.def -l libwindowscodecs.a and link against this one. Guess what? I'm getting the same error.But wait, there's more. I've got that gendef tool (because dlltool just threw ``no symbols'') and generated a def file. gcc actually linked that crap, but when I run my program, this guy pops out:
The procedure entry point WICConvertBitmapSource@12 could not be located in the dynamic link library WindowsCodecs.dll.That's not the only WinAPI function I can't link against, there're some more. And I haven't even told about ``complete'' w32api headers, which I have to constantly update. Now tell me /prog/, how can I fucking make a library which would work fine with gcc? Maybe installing that Windows SDK?