Compiler-Controlled LINK Options (Windows CE 5.0)

Send Feedback

The CL compiler calls LINK unless you specify the /c option. CL provides some control over the linker through command-line options and arguments.

The following table summarizes the characteristics of CL that affect linking.

CL command-line specification CL action that affects LINK
Any file name extension other than .C, .CXX, .CPP, or .DEF Passes a file name as input to LINK
filename.DEF Passes /DEF:filename.DEF
/Fnumber Passes /STACK:number
/Fdfilename Passes /PDB:filename
/Fefilename Passes /OUT:filename
/Fmfilename Passes /MAP:filename
/Gy Creates packaged functions (COMDATs); enables function-level linking
/LD Passes /DLL. /LDd creates a debug DLL.
/link Passes remainder of command line to LINK
/nologo Passes /NOLOGO
/Zd Passes /DEBUG
/Zi or /Z7 Passes /DEBUG
/Zl Omits default library name from .OBJ file

See Also

Linker Options | Linker Reference | Compiler Option Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.