ofxCsv
ofxCsv copied to clipboard
Compiling on Ubuntu - regex_replace error
I am trying to use this addon on Ubuntu, with OF 0.9.8. I have the following error:
/home/nuc/Documents/Code/openFrameworks/addons/ofxCsv/src/ofxCsvRow.cpp: In member function ‘void ofxCsvRow::trim()’:
/home/nuc/Documents/Code/openFrameworks/addons/ofxCsv/src/ofxCsvRow.cpp:315:50: error: no matching function for call to ‘regex_replace(std::string&, std::regex&, const char [3])’
col = std::regex_replace(col, s_trimRegex, "$1");
Any idea how to fix this?
I found a way to fix it. I had to install gcc-4.9, following this solution