Menu ▾ ▴

#27 no match for ‘operator!=’

git
closed
Farrer
None
1
2019-07-26
2019-07-17
qubodup
No

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

1 Attachments

Discussion

  • Farrer

    Farrer - 2019-07-24

    Fixed in commit 15702ade to master.

    Thanks for the report Qubodup!

     
  • Farrer

    Farrer - 2019-07-24
    • status: open --> closed
    • assigned_to: Farrer
     
  • qubodup

    qubodup - 2019-07-26

    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 :)

     

Anonymous
Anonymous

Add attachments
Cancel