int main(int argc,char** argv)
{
testing::InitGoogleTest(&argc,argv);
return RUN_ALL_TESTS();
}
/etc/ld.so.conf文件内容:
include ld.so.conf.d/*.conf
include /usr/local/lib
gcc $(gtest-config --ldflags --libs) -o test test.cpp运行无错误。
gtester -k test出错:
TEST: test... (pid=13010)
test: error while loading shared libraries: libgtest.so.0: cannot open shared object file: No such file or directory
FAIL: test