Advertisement

Linking problem

Started by March 22, 2003 12:39 PM
3 comments, last by Utwo 21 years, 7 months ago
I''m receiving the following error when I try to compile and link my project: [Linker error] undefined reference to `AlphaBlend@44'' alpha.o(.text+0x3fb):alpha.cpp: undefined reference to `AlphaBlend@44 I''m guessing this means that I have to include a certain library in order for AlphaBlend() to work (AlphaBlend() is a GDI call defined in Wingdi.h). However, when I check MSDN, it tells me this about AlphaBlend(): Windows NT/2000/XP: Included in Windows 2000 and later. Windows 95/98/Me: Included in Windows 98 and later. Header: Declared in Wingdi.h; include Windows.h. Library: Included as a resource in Msimg32.dll. Msimg32.dll? Am I supposed to include this dll file in order for it to work? If so that would be strange as it''s the first time I''ve had to include a dll file into my project, and incedentally I''ve tried it and it doesn''t work. Any ideas?
---signature---" Actually, at the time, I didn't give a damn about the FoxNews issue... just that you would come swooping in with your Super Mith cape flapping behind you and debunk it just because it didn't happen in your living room." - InnocuousFox
you need to generate an import library from msimg32.dll using implib or equivalent and link with that import library.
Advertisement
I''ve never done that before. Will implib create import libraries for use with Mingw?
---signature---" Actually, at the time, I didn't give a damn about the FoxNews issue... just that you would come swooping in with your Super Mith cape flapping behind you and debunk it just because it didn't happen in your living room." - InnocuousFox
yes.

are you sure it doesn''t already come with msimg32.a?
It didn''t, but I just updated my version of Dev-C++ and it does. Thank you very much. Your input helped a lot.
---signature---" Actually, at the time, I didn't give a damn about the FoxNews issue... just that you would come swooping in with your Super Mith cape flapping behind you and debunk it just because it didn't happen in your living room." - InnocuousFox

This topic is closed to new replies.

Advertisement