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:
License:
Source link.d
Documentation https://dlang.org/phobos/dmd_link.html
- int
runLINK(boolverbose, ErrorSinkeSink); - Run the linker.Parameters:
bool verboseprint command to be executed ErrorSink eSinkmessage sink Returns:status of execution. STATUS_FAILED if failed for other reasons - int
runProgram(const char[]exefile, const char*[]runargs, boolverbose, ErrorSinkeSink); - Run the compiled program.Parameters:
char[] exefileprogram name char*[] runargsarguments to exefile bool verboseprint command to be executed ErrorSink eSinkmessage sink Returns:exit status - int
runPreprocessor(Locloc, const(char)[]cpp, const(char)[]filename, const(char)*importc_h, ref Array!(const(char)*)cppswitches, boolverbose, ErrorSinkeSink, ref OutBufferdefines, out DArray!ubytetext); - Run the C preprocessor.Parameters:
Loc locsource location where preprocess is requested from const(char)[] cppname of C preprocessor program const(char)[] filenameC source file name const(char)* importc_hfilename of importc.h Array!(const(char)*) cppswitchesarray of switches to pass to C preprocessor bool verboseprint progress to eSink ErrorSink eSinkfor verbose messages and error messages OutBuffer definesbuffer to append any #define and #undef lines encountered to DArray!ubyte textset to preprocessed text Returns:error status, 0 for success - void
parseLinkerOutput(const(char)[]linkerOutput, ErrorSinkeSink); - Translate linker output to more user-friendly error messages, by extracting mangled symbols and demangling themParameters:
const(char)[] linkerOutputtext that the linker printed ErrorSink eSinksink for translated errors
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:41 2025