The texture is mapping oddly to the cube in OpenGL, but it looks just fine in the OBJ format. The U/V Coordinates are identical, I think. Do U/V Coordinates have to be formatted a little differently for OpenGL than for OBJ files?
[ATTACH=CONFIG]443[/ATTACH]
Here is the source code:
http://www.maco64.com/f/Cube_Texture_Problem.c
Here is the OBJ version:
http://www.maco64.com/f/Cube.obj
http://www.maco64.com/f/mtl.mtl
Here is the texture that is used by both:
http://www.maco64.com/f/texture2.bmp