Welcome, Guest. Please login or register.

Author Topic: [SOLVED] Cross-compiled C code won't run  (Read 1233 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: Cross-compiled C code won't run
« on: December 02, 2021, 07:12:36 PM »

You missed the \n at the end of the string. So it just pushes the string into the output buffer, but the buffer is never flushed.

You could try fflush(stdout) behind the printf. Or just add the \n to the string.

Another possibility would be to use proto/dos.h instead of stdio.h and Printf instead of printf. That way you would bypass the ANSI runtime and call AmigaDOS directly. The output buffer will then belong to the console window rather than the C runtime and the console will print out the buffer when the file handle is closed.
 
The following users thanked this post: Michele31415