Testing simple programs
To test the product installation and the critical search paths, try building, compiling, and running a couple of simple programs.
For example:
- Create the following Rust program:
[hello.rs] fn main() { println!("Hello World!"); } - Compile the test programs. For example:
rustc hello.rs -o helloNote: To use shortcuts to the compiler invocation commands, see Creating shortcuts to the IBM Open SDK for Rust on AIX 1.94 invocation commands. Otherwise, include the full path to the commands to compile the program. - Run the program:
./helloThe expected result is that "Hello World!" is displayed on the screen.
- Check the exit code of the program:
echo $?The result is zero.
Tip: For an overview of the installation process, see Installation workflow diagram.