Giter VIP home page Giter VIP logo

rastaconverter's Issues

Problem with mutexes

I was trying to migrate the sources from pthreads to standard c++ and stumbled on an error from runtime while unlocking a mutex that hasn't been locked.
Are you sure that unlocking the mutex in this place is correct?

pthread_mutex_unlock(&m_gstate->m_mutex);

Build errors on Linux Mint 18.3 with Allegro 4.4

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.