Linux編譯報錯:「......undefined reference to symbol ‘[email protected]@GLIBC_2.4.....」

目錄 1. 問題 2. 真因 3. 解決方案 1. 問題 報錯: 2. 真因 因爲調用線程相關(pthread)函數。 3. 解決方案 修改makefile文件,在arm-linux-gnueabihf-gcc後面加上-lpthread 再編譯,OK.
相關文章
相關標籤/搜索