Wednesday, 21 August 2013

Passing -I to ndk-build

Passing -I to ndk-build

I have some c++ code that fails to compile because it can't find
"cocos2d.h". I figured the cocos2d directory is not in the include path.
Normally adding a directory to your compiler (gcc, msvc, etc.) is done
with -I "directory", but the -I option for ndk-build sets directories
where ndk-build looks for makefiles. How do I do the same with ndk-build?
...
jni/../../foo/bar.h:8:21: fatal error: cocos2d.h: No such file or directory
...

No comments:

Post a Comment