SetPixel linker error

This is a discussion on SetPixel linker error within the A Brief History of Cprogramming.com forums, part of the Community Boards category; When I use the SetPixel function w/ dev-cpp, it gives me a linker error. The SetPixel prototype is in wingdi.h....

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    23

    SetPixel linker error

    When I use the SetPixel function w/ dev-cpp, it gives me a linker error. The SetPixel prototype is in wingdi.h.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    Your compiler cannot find the actual code for SetPixel(). You need to link in the library that has the body of that function in it. Just including the header w/o linking the library won't work.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 10:15 PM
  2. Crazy errors caused by class, never seen before..
    By Shamino in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2007, 12:54 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 11:52 PM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21