Cocoa-GL-Tutorial icon indicating copy to clipboard operation
Cocoa-GL-Tutorial copied to clipboard

Clean clone and build in OSX 10.7 fails to compile

Open TheBuzzSaw opened this issue 12 years ago • 3 comments

I made no changes to the project. I just opened it in Xcode 4.3.3 and tried to build it and got this:

error: unknown argument: '-fobj-nonfragile-abi'

Help?

TheBuzzSaw avatar Jan 01 '13 20:01 TheBuzzSaw

Removing that flag from the build options got it to work. Any reason it's in there by default, though?

TheBuzzSaw avatar Jan 01 '13 20:01 TheBuzzSaw

I did a build for 10.8 and also had to remove the flag.

  1. Changed to compile for Mountain Lion (10.8)
  2. Under Apple LLVM compiler 4.1 Language Under C Flags - took out debug flags to eliminate Clang error
  3. Under LLVM compiler 4.1 Warning Polices Put Treat Warnings as Errors to No because Gl.h and gl3.h are both included.

ron333 avatar Jan 01 '13 20:01 ron333