-
Notifications
You must be signed in to change notification settings - Fork 0
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]
The -r flag runs the code after it is compiled
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.
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.
Displays the version number of the C+ compiler.
cpx test.cpx -r -dThis compiles test.cpx, runs it, and then deletes it after it is finished.