RastaConverter icon indicating copy to clipboard operation
RastaConverter copied to clipboard

Build errors on Linux Mint 18.3 with Allegro 4.4

Open mrgw454 opened this issue 6 years ago • 1 comments

I recently downloaded the source and tried to build RastaConverter on a Linux Mint 18.3 64bit workstation. I received the following errors:

...

rasta.cpp: In member function ‘void RastaConverter::LoadOnOffFile(const char*)’: rasta.cpp:664:65: error: no matching function for call to ‘transform(std::__cxx11::basic_string::iterator, std::__cxx11::basic_string::iterator, std::__cxx11::basic_string::iterator, )’ std::transform(line.begin(), line.end(), line.begin(), toupper); ^ ... ...

rasta.cpp:1536:3: error: ‘__timeb64’ was not declared in this scope __timeb64 t; ^ rasta.cpp:1537:11: error: ‘t’ was not declared in this scope _ftime(&t); ^ rasta.cpp:1537:12: error: ‘_ftime’ was not declared in this scope _ftime(&t); ^

...

d7577 ~/source/RastaConverter/src $ g++ --version g++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

d7577 ~/source/RastaConverter/src $ cc --version cc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Any help you can provide would be appreciated.

Thanks!

mrgw454 avatar Jun 27 '18 00:06 mrgw454

Indeed, this code is a non-portable Microsoft extension.

polluks avatar Dec 11 '19 16:12 polluks

Resolved in Beta9

ilmenit avatar Apr 17 '24 00:04 ilmenit