Language Auto Fill

From PC2wiki
Jump to: navigation, search

The Auto Fill feature on Edit Language will automatically fill in language fields using the fields below.

In these examples are variables which are filled in by PC² when a source file is compiled or a submitted run is executed (and validated). See Variable Substitutions for more information on substitutions.

Location

Administrator module, Edit Language

Note

This feature uses the directory delimiter (File.separator) from the machine that the Administrator is running. The delimiter below is for a Windows machine, for Unix the delimiter would be forward slash.

Definitions

All OS's

 Language Name       : Java
 Compiler call       : javac {:mainfile}
 Executable Name     : {:basename}.class
 Execute command line: java {:basename}

Unix

 Language Name       : Kylix C++
 Compiler call       : bc++ -A  {:mainfile}
 Executable Name     : {:basename}
 Execute command line: ./{:basename}
 Language Name       : GNU C++
 Compiler call       : g++ -lm -o {:basename} {:mainfile}
 Executable Name     : {:basename}
 Execute command line: ./{:basename}
 Language Name       : GNU C
 Compiler call       : gcc -lm -o {:basename} {:mainfile}
 Executable Name     : {:basename}
 Execute command line: ./{:basename}
 Language Name       : Kylix Delphi
 Compiler call       : dcc {:mainfile}
 Executable Name     : {:basename}
 Execute command line: ./{:basename}
 Language Name       : Free Pascal
 Compiler call       : fpc {:mainfile}
 Executable Name     : {:basename}
 Execute command line: ./{:basename}
 Language Name       : Default
 Compiler call       : compiler {:mainfile}
 Executable Name     : {:basename}
 Execute command line: ./{:basename}

Windows

 Language Name       : Microsoft C++
 Compiler call       : cl.exe {:mainfile}
 Executable Name     : {:basename}.exe
 Execute command line: .\{:basename}.exe
 Language Name       : GNU C++
 Compiler call       : g++ -lm -o {:basename}.exe {:mainfile}
 Executable Name     : {:basename}.exe
 Execute command line: .\{:basename}.exe
 Language Name       : GNU C
 Compiler call       : gcc -lm -o {:basename}.exe {:mainfile}
 Executable Name     : {:basename}.exe
 Execute command line: .\{:basename}.exe
 Language Name       : Default
 Compiler call       : compiler {:mainfile}
 Executable Name     : {:basename}.exe
 Execute command line: .\{:basename}.exe


See Also