I've tried compiling the example code from the readme using CMake but I keep getting the following error:
libc++abi.dylib: terminating with uncaught exception of type io::error::can_not_open_file: Can not open file "ram.csv" because "No such file or directory".
I've place a dummy CSV file named ram.csv in the same path as main.cpp and the included csv.h. The file also contains the appropriate columns and dummy data to match the example. My CMakeLists.txt is simply:
I have no experience with CMake. My tip would be that the current working directory is not the same directory where main.cpp resides. Anyway this does not look like an issue with the CSV parser but with CMake.
I've tried compiling the example code from the readme using CMake but I keep getting the following error:
I've place a dummy CSV file named
ram.csv
in the same path asmain.cpp
and the includedcsv.h
. The file also contains the appropriate columns and dummy data to match the example. My CMakeLists.txt is simply:Any ideas on what I'm doing wrong? Thanks.