d:/linux/linuxkernel/WORKING_DIRECTORY/ango/angowx/android/AndroidRuntime/AndroidRuntime.cpp:919:42: error: 'setenv' was not declared in this scope
http://blog.csdn.net/llrraa2010/article/details/7961715
setenv() is not implemented on MinGW, so we have to use putenv().
http://zhidao.baidu.com/question/117087055.html
http://blog.csdn.net/shexinwei/article/details/7008862
if (rootDir == NULL) {
rootDir = "/system";
if (!hasDir("/system")) {
LOG_FATAL("No root directory specified, and /android does not exist.");
goto bail;
}
char *t = new char[256];
strcpy(t,"ANDROID_ROOT=");
strcat(t, rootDir);
putenv(t);
delete [] t;
// setenv("ANDROID_ROOT", rootDir, 1);
}
http://blog.csdn.net/llrraa2010/article/details/7961715
setenv() is not implemented on MinGW, so we have to use putenv().
http://zhidao.baidu.com/question/117087055.html
http://blog.csdn.net/shexinwei/article/details/7008862
if (rootDir == NULL) {
rootDir = "/system";
if (!hasDir("/system")) {
LOG_FATAL("No root directory specified, and /android does not exist.");
goto bail;
}
char *t = new char[256];
strcpy(t,"ANDROID_ROOT=");
strcat(t, rootDir);
putenv(t);
delete [] t;
// setenv("ANDROID_ROOT", rootDir, 1);
}