Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

dmd.link

Invoke the linker as a separate process.
Authors:

Source link.d

int runLINK();
Run the linker. Return status of execution.
int runProgram();
Run the compiled program. Return exit status.
int runPreprocessor(const(char)[] cpp, const(char)[] filename, const(char)* importc_h, ref Array!(const(char)*) cppswitches, const(char)[] output, OutBuffer* defines);
Run the C preprocessor.
Parameters:
const(char)[] cpp name of C preprocessor program
const(char)[] filename C source file name
const(char)* importc_h filename of importc.h
Array!(const(char)*) cppswitches array of switches to pass to C preprocessor
const(char)[] output preprocessed output file name
OutBuffer* defines buffer to append any #define and #undef lines encountered to
Returns:
exit status.