vs linux远程编译 pthread 坑(Vs Linux remote compilation pthread)

连接远程服务器,填完密码以后要下载标头

安装gcc(一般centos自带),gdb(yum install gdb),g++(yum install gcc gcc-c++)进入centos后直接安装

pthread在调试的时候需要多写一句命令,所以远程vs需要在链接器库依赖选项多设置一下pthread

————————

Connect to the remote server and download the header after filling in the password

Install GCC (usually included with CentOS), GDB (Yum install GDB), G + + (Yum install GCC gcc-c + +) and install directly after entering CentOS

Pthread needs to write one more command when debugging, so remote vs needs to set pthread in the dependency option of linker library