项目所遇问题

问题1: git push时总是提示要输入账户和密码

原因: 克隆时使用的是 git clone https://github.com/xxx/xxx.git 这种形式。

解决: 使用 ssh 方式 而非 https 方式clone

git clone git@github.com:xxx/xxx.git 

问题2: ubuntu无法编译Random

1> 提示 close()函数无定义

解决: #include <unistd.h>

2> 报所有的mysql函数都找不到

如: 

undefined reference to 'mysql_init'
undefined reference to 'mysql_fetch_row'

解决: 在makefile编译时 末尾添加 `mysql_config --cflags --libs`

问题3: 

原文地址:https://www.cnblogs.com/sylar-liang/p/4770809.html