• Advertisement
Sign in to follow this  

Trying to use draw primitave shapes

This topic is 4905 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement