摘要: //下载gtest-1.0.0.tar.gz并解压./configuremakesudo make install//foo.h#ifndef FOO_H#define FOO_Hint f();#endif//foo.cpp#include "foo.h"int f(){ return 0;}//test_foo.cpp#include #include "foo.h"TEST(test_foo, f){ //此处必须是tab 否则会有问题 ASSERT_EQ(0, f());}//命令使用g++ test_foo.cpp foo.cpp -o mai 阅读全文
posted @ 2013-08-30 10:19 taotaowill 阅读(209) 评论(0) 推荐(0) 编辑
摘要: gedit(以及gnome中诸多编辑软件)都是基本 GtkSourceView 的,它的配色方案是用xml文件写的。安装新的配色方案,只需要把相应配色文件放到指定位置即可。配色方案文件放的地址是:GtkSourceView 3A typical search path for GtkSourceView version 3 looks like: ~/.local/share/gtksourceview-3.0/styles//usr/share/gnome/gtksourceview-3.0/styles//usr/local/share/gtksourceview-3.0/styles// 阅读全文
posted @ 2013-08-30 10:06 taotaowill 阅读(653) 评论(0) 推荐(0) 编辑