RodrigoDornelles / 3bc-lang

Low-level language, tiny virtual machine, minimal runtime, intermediate representation, embeddable, easy for beginners. (Friendly Punched cards)
https://3bc-lang.org
GNU General Public License v3.0
239 stars 26 forks source link

Missing support to MSVC. #356

Open yxqsnz opened 1 year ago

yxqsnz commented 1 year ago

command: cl.exe .\programs\interpreter.c on 19.33.31630 for x64 on commit: 0b69a8f3647120aaf82948e0b7a327c6596396e8 system version: 10.0.22000 (Windows 11) output:

PS C:\Users\yxqsn\Projects\C\3bc-lang> cl.exe .\programs\interpreter.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31630 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

interpreter.c
C:\Users\yxqsn\Projects\C\3bc-lang\programs\../src/3bc.h(71): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
yxqsnz commented 1 year ago

btw, removing #include <unistd.h> doesn't work

yxqsnz commented 1 year ago

btw, removing #include <unistd.h> doesn't work Error log: here

RodrigoDornelles commented 1 year ago

I'll work it out, maybe replace the gcc assets in case the binaries get smaller. (I'm not sure)