ofxCsv icon indicating copy to clipboard operation
ofxCsv copied to clipboard

Compiling on Ubuntu - regex_replace error

Open Meach opened this issue 7 years ago • 1 comments

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?

Meach avatar Apr 07 '17 09:04 Meach

I found a way to fix it. I had to install gcc-4.9, following this solution

Meach avatar Apr 11 '17 13:04 Meach