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


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



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