andyfischer/circa

build errors with gcc 4.7

oskude opened this issue · 4 comments

found out that for gcc 4.7 you need to add #include <unistd.h> to overcome 'sleep' was not declared in this scope error. http://gcc.gnu.org/gcc-4.7/changes.html

but couldn't find out whats causing this:
g++ -o build/release/src/generated/all_builtin_types.o -c -ggdb -Wall -O1 -Iinclude build/release/src/generated/all_builtin_types.cpp
In file included from build/release/src/generated/all_builtin_types.cpp:1:0:
build/release/src/generated/../types/rect.cpp:5:15: error: variable or field 'get_rect' declared void
build/release/src/generated/../types/rect.cpp:5:15: error: 'caValue' was not declared in this scope
build/release/src/generated/../types/rect.cpp:5:24: error: 'val' was not declared in this scope
build/release/src/generated/../types/rect.cpp:5:29: error: expected primary-expression before 'float'
build/release/src/generated/../types/rect.cpp:5:40: error: expected primary-expression before 'float'
build/release/src/generated/../types/rect.cpp:5:51: error: expected primary-expression before 'float'
build/release/src/generated/../types/rect.cpp:5:62: error: expected primary-expression before 'float'
scons: *** [build/release/src/generated/all_builtin_types.o] Error 1

dammit, forgot markdown. should be #include <unistd.h>

Thx for the report. Will add that #include, the other bugs are from missing #includes inside CPP files that are themselves #included, similar to issue #6

builds here fine now

Cool, thanks for verifying