执行make命令时报错: zmalloc.o: In function `zmalloc_used_memory': /var/lib/tcommsvr/redis-2.8.0-rc4/src/zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4' collect2: ld returned 1 exit status make[1]: *** [redis-server] Error 1 make[1]: Leaving
[ 31%] Built target boost_numpy[ 36%] Building CXX object libs/numpy/example/CMakeFiles/dtype.dir/dtype.cpp.oLinking CXX executable ../../../bin/dtypeCMakeFiles/dtype.dir/dtype.cpp.o: In function `boost::python::converter::arg_to_python<int>::arg_to
c++中静态变量不但要在头文件中declare,还要在实现的cpp中declare.当然也可以赋个初始值. class foo { int _i; public: foo(int i) : _i(i) {} }; class bar { public: static int j; static foo f; }; int bar::j = 0; foo bar::f(1);
安装: npm i element-theme-default -S main.js增加 import ElementUI from 'element-ui' import 'element-ui/lib/theme-default/index.css' import router from './router' 但是一直: This dependency was not found: * element-ui/lib/theme-default/index.css in ./src/main.
var tds = document.getElementsByClassName("dv1")[0].children console.log(tds) 因为class可以重复使用,所以class获取到的是一个数组,如果想用class找儿子,就必须加上索引值, var a = document.getElementById("test").children;id具有唯一性,所以可以直接通过id找儿子