Comments (4)
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.
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.
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.
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)
- hard defines for read/write/select/open/close also affects other files HOT 4
- How to Cross-compile it with mingw-w64 from Linux system HOT 3
- Missing defines CREAD, CLOCAL and B600 HOT 4
- Returned handle cannot be used with "isatty" HOT 6
- Control/Charset option handling is not working HOT 3
- tcdrain is always blocking ... HOT 12
- Serial port name init seems wrong/strange HOT 1
- Any way to use with a Python packages?
- Function openSerial() changes the portname parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termiwin.