[tuhopuu-devel] Compiler Question

Daniel Fairhead tuhopuu-devel@blender.org
Wed, 24 Dec 2003 15:50:53 +0200


> I recently figured out that my compiler was letting a lot
> of c++ syntax go in my code. So when I gave it to goofster, 
> big trouble. I am using a standard cygwin install. Does anyone 
> know what I need to do to make it sensitive to these problems?

in your make-def.mk file (root tuhopuu directory) add:

CFLAGS = -std=c99

This will make gcc only accept C99 code. I tried using -ansi before,
but that brings up gazzilions of errors for all the // comments. Which,
although we don't want them, are too many to fix unless fixed on BF
too, for merge consistancy later. Also, C9X says they are allowed, now,
apparently (I still don't like them though ;) ).

Dan