博文

目前显示的是 三月, 2018的博文

Mingw64添加regex库

http://blog.creke.net/766.html http://sourceforge.net/projects/gnuwin32/files/regex/2.7/ 下载其中的regex-2.7-bin.zip, 将include中的regex.h放进MinGW的include目录,如:D:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\7.2.0\include 将lib中的libregex.dll.a和libregex.la放进MinGW的lib目录,如:D:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\lib 将regex2.dll放进程序所在目录。 在编译连接时加上-lregex参数即可。