Sublime Forum

No printf output after upgrading to M1 MacBook Pro

#1

On my old Mac running OS 10.15.7 (Catalina) a simple C hello world program outputs properly. (see the image of both screens at the end)

Running the same version of Sublime Text On a new M1 MacBook Pro running OS 11.6.1 and another M1 MacBook Pro running OS 12.1, I can’t get any output from any program. I even tried adding a flush() to see if that was a difference.

I am not sure if the problem is the new OS or the M1 processor since I do not have access to a non M1 machine with OS 11 or OS 12.

Both screen shots:

Regards

0 Likes

#2

What build system are you using? The default variant for the C single file build system only compiles the code.

0 Likes

#3

Thank you for the quick response. You are correct. When I moved to the new system, my selection of build and run got lost. I did a “build with…”. and chose to run it.

If you only build it, is there a way after a build to just run it or do you need to do a build with… and choose build and run?

Regards

0 Likes

#4

After selecting what to build with that becomes the new default.

0 Likes

#5

thank you!

0 Likes