Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with MS VC 2015 & 2017 under windows #23

Open
atocharnaud opened this issue Aug 14, 2023 · 0 comments
Open

Compilation error with MS VC 2015 & 2017 under windows #23

atocharnaud opened this issue Aug 14, 2023 · 0 comments

Comments

@atocharnaud
Copy link

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
@atocharnaud atocharnaud changed the title Compilation error with MS VC 2015 Compilation error with MS VC 2015 & 2017 under windows Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant