Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: cambalinho on October 05, 2016, 03:22:56 pm

Title: how add GdipInitializePalette.lib?
Post by: cambalinho on October 05, 2016, 03:22:56 pm
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");
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?
Title: Re: how add GdipInitializePalette.lib?
Post by: stahta01 on October 05, 2016, 04:03:50 pm
Post the full build log?

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

Tim S.