Skip to content

Compiler Flags

Bean Pringles edited this page Dec 14, 2025 · 5 revisions

Compiler Flags

You can run the C+ compiler through the cpx command.

The arguments are:

cpx [filename.cpx] [Flags: -r -d -c -v]

Flags:

-r:

The -r flag runs the code after it is compiled

-d:

The -d flag deletes the compiled file. It can only be passed if the -r flag is passed. It will run the program, and when it finishes, deletes it.

-c:

The -c flag stops after it is translated into C. It does not compile it and only gives you the output as a C file.

-v:

Displays the version number of the C+ compiler.

Example:

cpx test.cpx -r -d

This compiles test.cpx, runs it, and then deletes it after it is finished.

Clone this wiki locally