Repository navigation
Add header file for "hello world" example - #4413
Conversation
|
Yes, agree. Most examples in the User Guide are encoded with special markup, so they're actually run as one of the doc build steps (and the output is captured for inclusion as well), and we see such omissions in those. However, this example is not... @bdbaddog, this looks good to me. |
| </para> | ||
|
|
||
| <programlisting> | ||
| #include <stdio.h> |
There was a problem hiding this comment.
Change to include proper markup for < and >
#include <stdio.h>
There was a problem hiding this comment.
I will fix it soon, thanks.
I am learning scons for the use of godot, and is learing scons's latest User Guide. Actually, the design of scons is very interesting to me, and I like the intuitive design. I will read the guide thoroughly. I might find additional typos that need to be fixed, so I reviewed the Github test failure report to learn how to run tests on my local computer and found the following commands.
# set up environment
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install ninja psutil
# run document tests
python3 bin/docs-update-generated.py
python3 bin/docs-validate.py
python3 bin/docs-create-example-outputs.py
python3 runtest.py test/import.py test/ninjaI want to know if these commands is right for me, any reply is valuable, thanks.
|
FYI: also mentioned in #4320 (comment) concerning configure and lack of include for header resulting in linker error for some targets because there was no inline code generation (e.g., redefining printf to a different exported symbol) by the c preprocessor. |
|
Thanks for the PR. Merging! |
Add header file
stdio.hto the example.Otherwise, writing the tests as documented will fail to compile.