Michael IV
Michael IV

Reputation: 11424

error: invalid argument '-std=gnu99' not allowed with 'C++/ObjC++'

I am trying to compile C library called DevIL on OSX Maverick with Clang.I ran configure file then 'make' .I am getting the following error:

error: invalid argument '-std=gnu99' not allowed with 'C++/ObjC++'

Does it mean I am trying to compile C code with C++ compiler?How can I tell Clang to compile it as C lib?

Upvotes: 0

Views: 4437

Answers (1)

trojanfoe
trojanfoe

Reputation: 122381

My standard answer to such problems is to use MacPorts. Once MacPorts is installed, it's as simple as:

 $ sudo port install libdevil

Upvotes: 1

Related Questions