轉自 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601022
Linux(FC14)下編譯程序時出現下面的問題:
網上的說法是在makefile中加上 -lrt , 試過,確實可以。。。
轉自 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601022
Linux(FC14)下編譯程序時出現下面的問題:
/usr/bin/ld: libvalhalla-test.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2' /usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2' is defined in DSO /lib/librt.so.1 so try adding it to the linker command line /lib/librt.so.1: could not read symbols: Invalid operation collect2: ld returned 1 exit status
This means that libvalhalla-test has to be linked explicitly with librt, thus the fix proposed before (another one is to add explictly -lrt in the corresponding Makefile).
網上的說法是在makefile中加上 -lrt , 試過,確實可以。。。
本地起tomcat服務默認是http的,但是ajax請求的url是https,也就是跨域了。 然後不走後臺,瀏覽器F12顯示405 所以要配置一下tomcat,參考tomcat8.5配置http
git gc內存錯誤的解決方案參考文章: (1)git gc內存錯誤的解決方案 (2)https://www.cnblogs.com/chucklu/p/4214988.html 備忘一下。