stdout doesn't work? #226
Answered
by
autc04
lazy-schemer
asked this question in
Q&A
-
|
I tried running a super simple 'hello world' program on System7, but I didn't see anything. #include <stdio.h>
main () {
printf ( "Hello, world!" ) ;
} |
Beta Was this translation helpful? Give feedback.
Answered by
autc04
Jan 15, 2024
Replies: 1 comment 1 reply
-
|
Does the HelloWorld sample program work? It's probably a question of how you invoked the compiler: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lazy-schemer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does the HelloWorld sample program work?
It's probably a question of how you invoked the compiler:
By default, stdout will be implemented as a no-op, unless you link to the RetroConsole library.
If you are invoking the compiler directly, you will need to use
-lRetroConsoleto link to that library, if you're using CMake, add theCONSOLEoption toadd_application(as is done in the HelloWorld) sample.