When I try to compile my program, during the linking process, it gives me this error.
It does the same thing with other windows functions too. What is causing this?Code:undefined reference to `CreateCompatibleDC@4'
Thanks in advance.
Printable View
When I try to compile my program, during the linking process, it gives me this error.
It does the same thing with other windows functions too. What is causing this?Code:undefined reference to `CreateCompatibleDC@4'
Thanks in advance.
You need to link to Gdi32.lib
Thanks, it worked!