Need help texture mapping an image

I’m very new at graphics and am having trouble texture mapping. I want to map a jpeg pic but i can’t convert it. I’m using c++ on a mac and any coding help would be nice. I tried using the tk.h library, but it wouldn’t work.

I mainly use BMP’s to texture but u can try openIL which is and image loading library you can download thia at
http://www.openIL.org

Zee