> im trying to update my libuser32.a file so that it
> includes at least the SetLayeredWindowAttributes
> function because it doesn't seem to be supported in
> mingw. so i downloaded the platform sdk and got
> user32.lib from it. i thought i could just rename it
> to libuser32.a and replace the old file but that didnt
> work. so i figure there must be some difference
> between .lib files and .a files.
> i looked at that link you sent me and copied my
> user32.dll file from C:\Windows\System32 and placed it
> in my bin directory. i then made a def file
> LIBRARY user32.dll
> Then i ran dlltool.exe
> dlltool -d layered.def -l liblayered.a
> then i linked that file with my project and tried to
> compile and got this error message:
> undefined reference to
> SetLayeredWindowAttributes(HWND__*, unsigned long,
> unsigned char, unsigned long);
> what have i done wrong?
I just tried the above and the resulting liblayered.a is
definitely correct in that the signature of the importfunction
is as it should be.
You do add the lib with '-llayered' (assuming it is named
liblayered.a) and you also have it either included in a
searched libpath or added the path to the dir where it
resides by '-Lpath-to-dir' ?!?
Anyway, this all IMO is a moot point as the current version
of the Win32 API (w32api-2.5.tar.gz from the MinGW download
page) does include a libuser32.a with SetLayeredWindowAttributes
Therefor I suggest you get the current w32api-2.5 install it
and try again.
Vote against SPAM - see http://www.politik-digital.de/spam/
Michael Gerdau email: mgd@...
GPG-keys available on request or at public keyserver