cusim
cusim copied to clipboard
Compilation error with MS VC 2015 & 2017 under windows
In https://github.com/js1010/cusim/blob/main/cpp/src/utils/ioutils.cc the "not" logical operator should be replaced by "!"
cpp/src/utils\ioutils.cc(25): error C2065: 'not': undeclared identifier
cpp/src/utils\ioutils.cc(25): error C2146: syntax error: missing ')' before identifier 'err_cmt'
cpp/src/utils\ioutils.cc(25): error C2059: syntax error: ')'
cpp/src/utils\ioutils.cc(25): error C2143: syntax error: missing ';' before 'return'
cpp/src/utils\ioutils.cc(39): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(72): error C2065: 'not': undeclared identifier
cpp/src/utils\ioutils.cc(72): error C2146: syntax error: missing ')' before identifier 'read_lines'
cpp/src/utils\ioutils.cc(72): error C2059: syntax error: ')'
cpp/src/utils\ioutils.cc(72): error C2143: syntax error: missing ';' before 'return'
cpp/src/utils\ioutils.cc(95): error C2065: 'not': undeclared identifier
cpp/src/utils\ioutils.cc(95): error C2146: syntax error: missing ')' before identifier 'word_idmap_'
cpp/src/utils\ioutils.cc(95): error C2059: syntax error: ')'
cpp/src/utils\ioutils.cc(95): error C2143: syntax error: missing ';' before 'continue'
cpp/src/utils\ioutils.cc(102): warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(109): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(154): error C2065: 'not': undeclared identifier
cpp/src/utils\ioutils.cc(154): error C2146: syntax error: missing ')' before identifier 'remain_lines_'
cpp/src/utils\ioutils.cc(154): error C2059: syntax error: ')'
cpp/src/utils\ioutils.cc(154): error C2146: syntax error: missing ';' before identifier 'fin_'
cpp/src/utils\ioutils.cc(163): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(173): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
cpp/src/utils\ioutils.cc(202): error C2065: 'not': undeclared identifier