Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Compatibility with Windows #1

Open
JeromSar opened this issue Mar 10, 2015 · 4 comments
Open

Compatibility with Windows #1

JeromSar opened this issue Mar 10, 2015 · 4 comments

Comments

@JeromSar
Copy link

Hello,
I've managed to get babyc to compile (and work!) on Windows 7 with MinGW and minimal tweaks to babyc. The only header file which isn't available on Windows by default is err.h for for warnx due to the fact that Windows isn't POSIX compliant. If you avoided this header (shouldn't be too hard), you could make babyc Windows compatible! Thoughts?
Jerom

P.S. BabyC is pretty darn cool. :)

@Wilfred
Copy link
Owner

Wilfred commented Mar 22, 2015

Hello!

Thanks for your interest. I'd not anticipated that babyc would get so much interest! I'd welcome PRs to fix Windows compatibility, if you fancy.

@dzcz0807dw
Copy link

dzcz0807dw commented Dec 20, 2016

Hello!
i am studying the flex and bison and i use the win_flex.exe and the win_bison.exe to compiler sourcecode,i dont know why I can't run the babyc successfully after compiling the minimal_c.l and minimal_c.y. could you give me an exmple? btw..the win_flex and win_bison can be download in here:https://sourceforge.net/projects/winflexbison/ Thank you very much!

@ghost
Copy link

ghost commented Nov 7, 2017

err.h / warnx removed from this pull request : #6 .
However, I didn't check if the generated binary is really working under minGW.

@jbquirk
Copy link

jbquirk commented Apr 21, 2021

Hi stumbled upon this project, I needed a very basic compiler. I have successful complied under windows 10 with visual C++ latest version. I intend to retarget to a very unique processor.
To get it compile under windows I added
#define warnx printf
and just commented out the err.h file.
The binary built and successfully complied the test files.
Hope this helps

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants