Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

``GNU/Compatibility''

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 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@12

Then 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?

Name: Anonymous 2012-10-14 17:36

Sagebomb for proprietary shit.

Name: Anonymous 2012-10-14 17:48

By programming for UNIX(-like) environments.

Name: Anonymous 2012-10-14 17:59

You wouldn't have had this problem if you used Perl 6 on BeOS Haiku

Name: Anonymous 2012-10-15 5:22

Help please! Despite the ironic tone of the post, the problem actually exists, and I have no idea what to do.

Name: Anonymous 2012-10-15 5:31

>>5
Stop using a treacherous privacy-violating insecure operating system.

Name: Anonymous 2012-10-15 5:31

Can't you just use a regular jpeg library?

Name: Anonymous 2012-10-15 5:36

>>7
Because he likes to create his own problems. That's why he's programming on Windows in the first place.

Name: Anonymous 2012-10-15 5:37

Why not just the Independent JPEG Group stuff?

Name: Anonymous 2012-10-15 5:47

http://www.google.com/search?q=site%3Amicrosoft.com+%22independent+JPEG+Group%22
If libjpeg is good enough for them, its good enough for you.

Name: Anonymous 2012-10-15 6:12

No, guys, you didn't get me. I'm loading other formats too, and I've no desire to use that awful libpng API. (You should also know one doesn't simply compile a library on Windows).

What I'm actually asking is how the hell you make import libraries for system dlls on MinGW?

Name: Anonymous 2012-10-15 10:32

That was very helpful of you, /prog/. The answer is: RTFM and use --kill-at flag. This is how I make homebrew import libraries now:
gendef C:\Windows\System32\WindowsCodecs.dll
dlltool --kill-at -D WindowsCodecs.dll -d WindowsCodecs.def -l libwindowscodecs.a

Name: Anonymous 2012-10-15 12:35

DevIL

Don't change these.
Name: Email:
Entire Thread Thread List