5月
01
C++中使用正则表达式
主要记录使用正则表达式编译时遇到的问题。 要使用正则表达式,需include<regex>,然后编译时报错: g++ -c -o wgs2sgf.o wgs2sgf.cpp In file included from d:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/regex … Continue reading
主要记录使用正则表达式编译时遇到的问题。 要使用正则表达式,需include<regex>,然后编译时报错: g++ -c -o wgs2sgf.o wgs2sgf.cpp In file included from d:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/regex … Continue reading
今天用notepad++写代码,多文件的,包括go.cpp,gofsize.cpp,gofsize.h,编译时总是报如下错误: G:\go/go.cpp:22: undefined reference to `gofilesize(std::basic_ifstream&)' collect2: ld returned 1 exit st … Continue reading