[Coco] RS-DOS C compiler, maybe cross compiler?
Pierre Sarrazin
sarrazip at sarrazip.com
Wed Dec 7 15:40:53 EST 2022
Hi Allen,
Dixit Allen Huffman via Coco (2022-12-07 13:11):
> I am finally taking a look at CMOC. I was trying to get it to build
> under Windows via CYGWIN, but no luck. After installing a bunch of
> extra stuff to make the ./configure script work (G++, perl, yacc/bison,
> etc.), the make now fails complaining about ‘usleep’ in main.cc.
That error probably happens in src/usim-0.91-cmoc/main.cc, where there
is a call to usleep().
It is declared by #include <unistd.h>.
At line 12 of main.cc, you will see this:
#if defined(__unix) || (defined(__APPLE__) && defined(TARGET_OS_MAC)) || defined(__MINGW32__)
#include <unistd.h>
#endif
Change the #if line to append " || defined(__CYGWIN__)", like this:
#if defined(__unix) || (defined(__APPLE__) && defined(TARGET_OS_MAC)) || defined(__MINGW32__) || defined(__CYGWIN__)
#include <unistd.h>
#endif
If this works for you, I'll add that to my copy for the next version.
If you prefer to continue this in private, feel free to write me at
<sarrazip at sarrazip.com>.
--
Pierre Sarrazin <sarrazip @ sarrazip . com>
More information about the Coco
mailing list