tihmstar / img4tool

A tool for manipulating IMG4, IM4M and IM4P files
GNU Lesser General Public License v3.0
270 stars 105 forks source link

Error at compile #31

Closed qiurigao closed 4 years ago

qiurigao commented 4 years ago

img4tool.cpp: In function ‘void tihmstar::img4tool::printIMG4(const void*, size_t, bool, bool)’: img4tool.cpp:312:30: ### error: ‘reverse’ is not a member of ‘std’ std::reverse(octetString.begin(), octetString.end()); ^~~

ghost commented 4 years ago

This is because #include <algorithm> is missing. This PR should fix that.

qiurigao commented 4 years ago

main.cpp: In function ‘int main_r(int, const char*)’: main.cpp:384:26: error: ‘reverse’ is not a member of ‘std’ std::reverse(octetString.begin(), octetString.end()); ^~~ main.cpp: In function ‘char readFromFile(const char, size_t)’: @elp0t0r1c0