使用 Eclipse + CDT + MinGW32 开发 C++ Socket 程序找不到
库文件和头文件 ?
mingw 下 设定头文件路径:
C++头文件目录%MINGW_PATH%/lib/gcc/mingw32/4.4.0/include/c++下有头文件,里面有std::string类的声明。
//根目录
MINGW_PATH=D:/MinGW (举例D盘,实际根据自己的MInGw的安装路径决定)
//C头文件目录
C_INCLUDE_PATH=%MINGW_PATH%/include;%MINGW_PATH%/lib/gcc/mingw32/3.4.5/include
//C++头文件目录
CPLUS_INCLUDE_PATH=%MINGW_PATH%/include/c++/3.4.5;%MINGW_PATH%/include/c++/3.4.5/mingw32;%MINGW_PATH%/include/c++/3.4.5/backward;%C_INCLUDE_PATH%
//在QTSDK带的MinGW中C++头文件目录均在lib
文件夹下
CPLUS_INCLUDE_PATH=%MINGW_PATH%/lib/gcc/mingw32/4.4.0/include/c++;%C_INCLUDE_PATH%
//库目录
LIBRARY_PATH=%MINGW_PATH%/lib;%MINGW_PATH%/lib/gcc/mingw32/3.4.5
//可执行程序目录
PATH=%MINGW_PATH%/bin;%MINGW_PATH%/libexec/gcc/mingw32/3.4.5