SDL won't build; an unknown library needed

Hi,

Under VS2008 I get the following link-error:

SDL_gdirender.obj : error LNK2019: unresolved external symbol
_SDL_PreMultiplyAlphaRGBA8888 referenced in function _GDI_SetTextureBlendMode

What’s the necessary library I need? I already put gdi32.lib and dxguid.lib, but
no go.

Best regards,
Atte

The missing linker symbol is _SDL_PreMultiplyAlphaRGBA8888, not
_GDI_SetTextureBlendMode, so you’d be getting different linker errors
if you were missing a GDI lib in your linkage.

Same old questions: What version/revision of SDL are you building? The
problems your having look at my initial glance like they should have
been working between revision 4417 and present (rev 4439.)On Wed, Feb 18, 2009 at 8:43 AM, Atte Backman <atte.backman at hotmail.com> wrote:

SDL_gdirender.obj : error LNK2019: unresolved external symbol
_SDL_PreMultiplyAlphaRGBA8888 referenced in function _GDI_SetTextureBlendMode

What’s the necessary library I need? I already put gdi32.lib and dxguid.lib, but
no go.


http://codebad.com/

If you’re up to date, and something very simple is going wrong, it
might be that src/video/SDL_alphamult.c isn’t being linked for some
reason.On Wed, Feb 18, 2009 at 12:14 PM, Donny Viszneki <@Donny_Viszneki> wrote:

On Wed, Feb 18, 2009 at 8:43 AM, Atte Backman <atte.backman at hotmail.com> wrote:

SDL_gdirender.obj : error LNK2019: unresolved external symbol
_SDL_PreMultiplyAlphaRGBA8888 referenced in function _GDI_SetTextureBlendMode


http://codebad.com/

Donny Viszneki <donny.viszneki gmail.com> writes:

SDL_gdirender.obj : error LNK2019: unresolved external symbol
_SDL_PreMultiplyAlphaRGBA8888 referenced in
function _GDI_SetTextureBlendMode

If you’re up to date, and something very simple is going wrong, it
might be that src/video/SDL_alphamult.c isn’t being linked for some
reason.

OMG, that was it. It’s missing in the default VisualC solution.
Right after I added it in the project, everything went just fine.
Thanks!

P.S. Maybe this should be added in the project? (I was using the
SVN trunk).> On Wed, Feb 18, 2009 at 12:14 PM, Donny Viszneki <donny.viszneki gmail.com> wrote:

On Wed, Feb 18, 2009 at 8:43 AM, Atte Backman <atte.backman hotmail.com> wrote:

It’s missing in the default VisualC solution.
Right after I added it in the project, everything went just fine.

This happens a lot as most of our developers don’t prefer working with
Microsoft’s dev tools.

P.S. Maybe this should be added in the project? (I was using the
SVN trunk).

Think you can generate a diff of the old MSVC project file and your
modified project file? Attach it to your next email and I’m sure it
will be in trunk the next time Sam checks his email!On Wed, Feb 18, 2009 at 4:31 PM, Atte Backman <atte.backman at hotmail.com> wrote:


http://codebad.com/

This happens a lot as most of our developers don’t prefer working with
Microsoft’s dev tools.

We really need buildbots + tinderbox!

P.S. Maybe this should be added in the project? (I was using the
SVN trunk).

Think you can generate a diff of the old MSVC project file and your
modified project file? Attach it to your next email and I’m sure it
will be in trunk the next time Sam checks his email!

Or just attach the project file itself. Someone else can run diff to
make sure all the changes are good.On Wed, Feb 18, 2009 at 5:14 PM, Donny Viszneki <@Donny_Viszneki> wrote:


http://codebad.com/

OMG, that was it. It’s missing in the default VisualC solution.
Right after I added it in the project, everything went just fine.
Thanks!

Whoops, I’ll fix that tonight.

Thanks!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

OMG, that was it. It’s missing in the default VisualC solution.
Right after I added it in the project, everything went just fine.
Thanks!

Whoops, I’ll fix that tonight.

This was fixed last night, btw. :slight_smile:

See ya!
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC