2013年4月22日

摘要: 使用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变 阅读全文
posted @ 2013-04-22 19:54 jaryWang 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 正在运行的内核和系统信息# uname -a # 获取内核版本(和BSD版本)# lsb_release -a # 显示任何 LSB 发行版版本信息# cat /etc/SuSE-release # 获取 SuSE 版本# cat /etc/debian_version # 获取 Debian 版本使用 /etc/DISTR-release 其中DISTR(发行代号)=lsb (Ubuntu), redhat, gentoo, mandrake, sun ... 阅读全文
posted @ 2013-04-22 17:53 jaryWang 阅读(2053) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-04-22 16:08 jaryWang 阅读(213) 评论(0) 推荐(0) 编辑

导航