Macro link_args::windows [−][src]
Set a group of arguments for the Windows linker.
The following safe arguments can be set:
The following unsafe arguments can be set:
Examples
Safe arguments
link_args::windows! { stack_size(0x80000); default_lib("kernel32.lib", "Shell32.lib"); }
Unsafe arguments
link_args::windows! { unsafe { // Prevent some libraries being used unless they specified on the // comamnd line. no_default_lib("kernel32.lib", "Shell32.lib"); // This makes the above line redundant. disable_all_default_libs(); // Set the entry point. raw("/ENTRY:mainCRTStartup"); } }