Giter Site home page Giter Site logo

Tons of Errors about termiwin HOT 4 CLOSED

veeso avatar veeso commented on July 20, 2024
Tons of Errors

from termiwin.

Comments (4)

veeso avatar veeso commented on July 20, 2024

For the redeclaration problem try defining TERMIWIN_DONOTREDEFINE in your build defines.

gcc ... -D TERMIWIN_DONOTREDEFINE

For the other problems I don't know actually, I've never tried to build termiWin with MinGW, but only with MSVC: I'll try when I've got some time, but I think there are some compatibility issues with MinGW library.

from termiwin.

uruskan avatar uruskan commented on July 20, 2024

I commented out the defining lines and it compiled as same as with the -D TERMIWIN_DONOTREDEFINE command. But my project isn't working anyway. I never tried to compile it with MSVC will try it. The project I am trying to port to windows is this one btw: https://raw.githubusercontent.com/mevdschee/peg-solitaire.c/master/peg-solitaire.c
Thank you for your help.

from termiwin.

veeso avatar veeso commented on July 20, 2024

I've just tried building peg-solitaire with MinGW.

  • I replaced termios.h with termiWin.h in the source code.
  • I replaced hthe select function with select_something else in the source code (rows 92, 357).
  • I build with gcc peg-solitaire.c termiWin.c -I . -o peg-solitaire -D TERMIWIN_DONOTREDEFINE and it works fine

I've got MinGW with GCC 8.2.0 on Windows 10 (with latest updates).
If you have the WSL it works fine there, otherwise you could try as I said with MSVC, but I cannot guarantee it's gonna work.

from termiwin.

uruskan avatar uruskan commented on July 20, 2024

I did the exact steps before ur comment, it compiles but the program doesn't work. I tried with MSVC but there are some problems too (not from termiwin). Anyway thanks for your time trying to help such not important thing.

from termiwin.

Related Issues (10)

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.