no match for ‘operator!=’
Status: Alpha
Brought to you by:
farpro
Can't compile DNT in a manjaro linux virtual machine.
[ 0%] Building CXX object CMakeFiles/dntlib.dir/src/engine/dialog.cpp.o
/home/user/Downloads/dnt-code-61b778f2653d066560c7bd23ff427eb8ff1514ed/src/engine/dialog.cpp: In member function ‘int Conversation::loadFile(std::string)’:
/home/user/Downloads/dnt-code-61b778f2653d066560c7bd23ff427eb8ff1514ed/src/engine/dialog.cpp:710:31: error: no match for ‘operator!=’ (operand types are ‘std::basic_istream<char>’ and ‘long int’)
710 | while(getline(file, buffer) != NULL)
See attachment for full output
Anonymous
Fixed in commit 15702ade to master.
Thanks for the report Qubodup!
Thanks! It works now. Made a hasty step-by-step video: https://youtu.be/cC05QlMd0ck
Will try to compile for windows when I find some time next :)