#6516 closed defect
ScummVM-Tools: Compile error with C++98
Reported by: | Kirben | Owned by: | SF/mthreepwood |
---|---|---|---|
Priority: | high | Component: | Tools |
Version: | Keywords: | ||
Cc: | Game: |
Description
I'm getting these errors when trying to compile the current ScummVM Tools GiT: engines/sword1/compress_sword1.cpp: In member function 'virtual void CompressSwo rd1::execute()': engines/sword1/compress_sword1.cpp:751:8: error: 'std::string' has no member nam ed 'pop_back' engines/sword1/compress_sword1.cpp:757:4: error: 'transform' is not a member of 'std'
I'm using GCC 4.6.2 under MinGW.
Ticket imported from: bugs/6516.
Change History (10)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Owner: | set to |
---|---|
Status: | new → closed |
Summary: | ScummVM-Tools: Compile error under Mingw → ScummVM-Tools: Compile error with C++98 |
comment:3 by , 11 years ago
The first error is fixed, but the second error (transform) still occurs.
comment:6 by , 11 years ago
No, that causes a different error: engines/sword1/compress_sword1.cpp: In member function 'virtual void CompressSwo rd1::execute()': engines/sword1/compress_sword1.cpp:759:80: error: no matching function for call to 'transform(std::basic_string
comment:8 by , 11 years ago
No difference, when including locale.
Using 'tolower' instead of 'std::tolower' works though.
comment:10 by , 6 years ago
Component: | → Tools |
---|
I fixed it in revision 60b856b. Looks like criezy used an evil C++11 function.