When I was compiling for Mac using scons, I got a couple of errors that might be a code problem, not a compiler problem. When I disable GRAVFFT in the sconscript for mac like it says on the tutorial, I get this error:
g++ -o build/src/simulation/Gravity.o -c -w -std=c++98 -fkeep-inline-functions -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -DLUACONSOLE -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/simulation/Gravity.cpp src/simulation/Gravity.cpp: In constructor 'Gravity::Gravity()': src/simulation/Gravity.cpp:519: error: class 'Gravity' does not have any field named 'grav_fft_status' scons: *** [build/src/simulation/Gravity.o] Error 1 scons: building terminated because of errors.
Can anyone help solve this problem?
# For more readability:
g++ -o build/src/simulation/Gravity.o -c -w -std=c++98 -fkeep-inline-functions -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -DLUACONSOLE -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/simulation/Gravity.cpp
src/simulation/Gravity.cpp:
In constructor 'Gravity::Gravity()': src/simulation/Gravity.cpp:519:
error: class 'Gravity' does not have any field named 'grav_fft_status' # Here's the error!
scons: *** [build/src/simulation/Gravity.o] Error 1 scons: building terminated because of errors.