Trying to use draw primitave shapes
I am currently using dev-c++ 4.9.9.0 beta. I was trying to use MoveToEx() and LineTo() methods to draw lines in the client area of a window. However, when I compile the code I get the following errors.
[Linker error] undefined reference to `MoveToEx@16'
[Linker error] undefined reference to `LineTo@12'
Is there something to include? I did some looking around and read something about using Gdi32.lib that is not in my lib folder. Do I need this? Any help would be appreciated.
Try adding gdi32 (it may require a -l in front of it) to the extra libraries line in your projection options. This will link in the Windows GDI library and get rid of your linker errors.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement