User forums > Using Code::Blocks

how add GdipInitializePalette.lib?

(1/1)

cambalinho:
i have these code:

--- Code: ---Graphics gr(rhs.HBitmap);
        Bitmap btmPallet(rhs.imageweight, rhs.imageheight,&gr);
        btmPallet.InitializePalette(rhs.imgPallet,PaletteType::PaletteTypeFixedHalftone27,0, TRUE, NULL);
        if(rhs.imgPallet==NULL)
            DebugText("palette not");
--- End code ---
but i get these error:
"undefined reference to `GdipInitializePalette@20'"
i added the libgdiplus.a and others for use GDIPLUS, but seems that i miss one :(
i can't find the GdipInitializePalette.lib.
can anyone advice me?

stahta01:
Post the full build log?

http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Tim S.

Navigation

[0] Message Index

Go to full version