Wndows 中使用 VS2019 创建 Ubuntu C++ 项目
摘要:1、安装 VS 组件 “使用 C++ 的 linux 开发” 2、配置 Ubuntu 服务器上的环境 # 安装依赖软件 sudo apt-get install openssh-server g++ gdb gdbserver # 启动 ssh 服务 sudo service ssh start 3
阅读全文
linux 中 eclipse 开发 c/c++ 多线程程序,添加 libpthread.a 库支持
摘要:导入头文件 在 linux 中开发多线程程序,在使用到 pthread 系列函数的文件中,需要导入头文件: 链接 libpthread.a 在编译的时候,需要链接 libpthread.a 库 eclipse 中添加 libpthread.a 库:Project -> Properties -> C
阅读全文
设置 eclipse C++ 版本
摘要:gcc 版本 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) 默认是使用 C++ 98 版本进行编译 设置 eclipse 中 C++ 的版本: Project -> properties
阅读全文