I'm writing an OpenGL application in C++ using Xcode 4 on Lion. To load textures, and keep the application platform independent, I plan on using DevIL.
To install DevIL on my mac I ran ./configure and noticed gcc was no longer on the $PATH. I created a symlink from /Developer/usr/bin/gcc-4.2 to /usr/bin. Then I re-ran ./configure, it now finds gcc but fails with this:
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
I'm not sure what this means:
- Shouldn't I have symlinked gcc?
- Do I need another gcc?
- Is the problem DevIL related?
Thanks in advance