/LINENUMBERS, /NOLINENUMBERS Linker Option

Syntax: Default:
/L[INENUMBERS] /NOLINENUMBERS
/NOLI[NENUMBERS]  

Use /LINENUMBERS to include source file line numbers and associated addresses in the map file. For this option to take effect, there must already be line number information in the object files you are linking. When you compile, use the /Tn compiler option to include line numbers in the object file (or /Ti, to include all debugging information). If you give the linker an object file without line number information, the /LINENUMBERS option has no effect.

The /LINENUMBERS implies /MAP, even if you specified /NOMAP.

By default, the map file is given the same name as the output file, plus the extension .map. You can override the default name by specifying a map filename.



Summary of Linker Options