Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.59k stars 281 forks source link

Undefined reference to alphablend #302

Open Yedboy33k opened 3 months ago

Yedboy33k commented 3 months ago

I'm trying to test blur C++ effect but it says "Undefined reference to alphablend" what to do?

BlocksFunction commented 2 months ago

This should be a problem with the compiler Can you link the msimg32.lib library file?

Yedboy33k commented 2 months ago

I linked msimg32.lib. Still the same thing.

BlocksFunction commented 2 months ago

Are you include wingdi.h in code?

Yedboy33k commented 2 months ago

oh thanks

Yedboy33k commented 2 months ago

keeps saying undefined reference to `_imp__AlphaBlend@44'

BlocksFunction commented 2 months ago

Are you linked msimg32.lib in code? try link msimg32.lib in linker options

Yedboy33k commented 2 months ago

where to find compiler options

BlocksFunction commented 2 months ago

First open your project and click "Tools"Button, and click to "Compiler Options", "Add the following commands when calling the linker" the following input box

BlocksFunction commented 2 months ago

I wrote some code:

include

include

int main() { AlphaBlend(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); return 0; } linker not say "Undefined reference to alphablend" Can you try the code?(replace "NULL" to your paramet pls)

Yedboy33k commented 2 months ago

It says 5 72 C:\Users\DELL\OneDrive\Escritorio\main.cpp [Error] could not convert '0' from 'int' to 'BLENDFUNCTION' {aka '_BLENDFUNCTION'}

BlocksFunction commented 2 months ago

replace "NULL" to your paramet pls.........

Yedboy33k commented 2 months ago

I did replace NULL to my paramet

BlocksFunction commented 2 months ago

emm