Problem with SOIL in OpenGL

First things first, I'm really new to programming, period XD
New to Cocoa, new to OpenGL, new as in about one week.

So i've been messing around with CocoaGL and gotten up to the part, where i would like to texture a simple tile on my screen. The good old Red Book didn't answer that aspect nicely and other tutorials and examples that i've read, i've also read that these methods aren't quite the best ones to use, for example One Sad Cookie stated that NSBitmapImageRep is a dangerous way to load images into a texture, i'm still wondering why though.

Anyways, surfed around and found some image libaries, liked SOIL for it's simplicity, wrote the code for SOIL to load an image into an OpenGL texture, but upon building, i get an error...

and that's it, don't ask why i've got OpenAL in my project XD i plan on using the same project to learn programming and MAYBE someday write a simple game or an app that ppl might find useful, if it's going to be a game, of course it's going to have sound, or do you suggest any other framework besides OpenAL?

anyways, went off topic with that, any help would be really great and appreciated, been messing around with this thing for a long time now and not found a solution.

If you are having problems getting your texture to display, it might be because you are telling it to load "texture.jpg." That may just be a typo from posting, but your code should probably read "texture.jpg" . After calling that load function, you should probably check if it was loaded successfully and maybe printf an error message or something to let you know if its not.

The image most likely isn't loading because you haven't specified the path correctly. Using "tile.png" isn't sufficient unless the working directory is the folder which contains the file. You may want to look at http://blog.onesadcookie.com/2007/12/fin...files.html for info on finding your files.

//edit: Since you mentioned you are new to programming (and presumably Xcode as well), make sure you are adding whatever resources you need (images and such) to the Resources directory in your Xcode project.

it's just incredible how two lines of code can fix a biiiiig problem, wow!

Thank You All SOOOO Much for Your Help!!!
By the way, Terrydil, or anyone else for that matter, i did what the Required Reading announcment said, and lurked around a bit before posting, say, is there a problem that OneSadCookie HAS NOT fixed? XD

RingoEST Wrote:By the way, Terrydil, or anyone else for that matter, i did what the Required Reading announcment said, and lurked around a bit before posting, say, is there a problem that OneSadCookie HAS NOT fixed? XD

He has yet to come out with an app that automatically produces original, money-making games with the click of a button, but I expect that any day now.