摘要:
使用gcc编译代码是报出error: 'for' loop initial declarations are only allowed in C99 modenote: use option -std=c99 or -std=gnu99 to compile your code错误,这是因为在gcc中直接在for循环中初始化了增量:[cpp] for(inti=0;i<len;i++){}这语法在gcc中是错误的,必须先先定义i变量:[cpp] inti;for(i=0;i<len;i++){}这是因为gcc基于c89标准,换成C99标准就可以在for循环内定义i变 阅读全文
摘要:
svn: Could not use external editor to fetch log message; considersetting the $SVN_EDITOR environment variable or using the --message(-m) or --file (-F) optionssvn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR isset, and no 'editor-cmd' run-time configuration option was foun 阅读全文