CMUGraphics.h

This is a discussion on CMUGraphics.h within the C++ Programming forums, part of the General Programming Boards category; Im trying to figure out how to display an image, just a .jpeg file onto the graphics window. However, I'm ...

  1. #1
    Unregistered
    Guest

    Question CMUGraphics.h

    Im trying to figure out how to display an image, just a .jpeg file onto the graphics window. However, I'm pretty sure the code is right.... it looks like this:

    window w(800,600,0,0);
    w;

    image card("images\\scs.jpg", JPEG);
    w.DrawImage(card,10,10);

    This seems like it should work because I basically copied the code from a sheet with the CMU functions on it. But when it runs it gives me an error:

    [Linker error] Unresolved external '_jpegload' referenced from......

    I am using Borland C++ Builder 5 if that helps anyone.

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    i think it's something lie this

    ("c://folder(s)the file")

    note the c:
    but yours may be d: or something

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    >>("c://folder(s)the file")
    if you are using the '/' you only need one of them, otherwise the compiler will think you are commenting out the other stuff

    USE:
    ("c:\\folder(s)the file")
    OR ("c:/folder(s)the file")
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  4. #4
    Unregistered
    Guest
    hey thanks for the response, but I have already tried all the combo's of the / and // and eve some \ and \\ nothing changes the error I get. The problem lies somewhere else, in the error I think. Any more help would be greatly appreciated.

Popular pages Recent additions subscribe to a feed

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