title: How do I properly link this gdi+ example to a library file?
body: <p>I copied an example from Microsoft to display a line using GDI+ but I got some errors that have to do with the linker not being set up right for 'gdiplus.lib'. I got these errors:</p>
  
  <p>-relocation truncated to fit: R_X86_64_PC32 against undefined symbol <code>GdipDrawLineI'
  collect2: error: ld returned 1 exit status
  -undefined reference to</code>GdiplusStartup'</p>
  
  <p>How do I set up this program to work right? </p>
  
  <p>I tried putting the folder that contained gdiplus.lib by right clicking the project (using netbeans) and clicking properties>linker>additional library directories>"C:\…\". I also tried putting gdiplus.lib in 'additional dependencies' in the same window. </p>
  
  <p>I know java very well and am just starting out with c++ and really just need a graphics example to study before porting my programs.</p>