EDIT:
ah...
EDIT:
Code: Select all
mkdir ~/atari_projects
cd ~/atari_projects
nano hello.c
Code: Select all
#include <osbind.h>
int main() {
Cconws("Hello, Atari ST from Cygwin!\r\n");
Cconin(); // Wait for keypress
return 0;
}Code: Select all
m68k-atari-mint-gcc -m68000 -I/opt/cross-mint/m68k-atari-mint/include -o hello.tos hello.c


Yep, there could be a whole bunch of stuff wrong for all I know. Not really worth the time screwing around with it all. I'll stick to what I was doing originally as it all works.stephen_usher wrote: Fri Oct 24, 2025 2:32 pm Goodness knows how the original build process will work with GNU C. You'll need the flag -mshort so that ints are 16 bits rather than 32 bits for a start.
I've just tried the process from scratch on my box:-
Code: Select all
mkdir /tmp/osbuildtest
cd /tmp/osbuildtestCode: Select all
git clone https://github.com/th-otto/tos3x.git
Code: Select all
cd tos3xCode: Select all
makeCode: Select all
dh219@gin:/tmp/osbuildtest/tos3x$ ls -l glue/*.img
-rw-r--r-- 1 dh219 dh219 524288 Oct 24 15:20 glue/tos306de.imgCode: Select all
$ git clone https://github.com/th-otto/tos3x.git
Cloning into 'tos3x'...
fatal: remote helper 'https' aborted session
Start with the git version. Apply your changes.exxos wrote: Fri Oct 24, 2025 3:29 pm @Badwolf I'm not using the files from git though. I patched loads of stuff so all the files are on my PC.
It might be helpful to know that the cygwin drives are also just Windows directories - you can use nano (or vim or anything else) from the cygwin shell, or you can edit the code on the disk in Windows using any editor or IDE.exxos wrote: Fri Oct 24, 2025 1:19 pm What a faff! had to install nano... wget installs but does nothing at all.
Did a test program:
Code: Select all
mkdir ~/atari_projects cd ~/atari_projects nano hello.c
Code: Select all
> explorer .