BUG: You receive "LNK1118" and "LNK1141" errors when the project name contains a space character (814421)
The information in this article applies to:
- Microsoft Visual C++ .NET (2003)
- Microsoft Visual C++ .NET (2002)
VisualStudio7:571556 SUMMARYIn Visual Studio .NET, when you add a module definition file
(.def) to a project, and the project name contains an embedded space character,
you may receive the following linker error messages when you build the
project: LNK1118: syntax error in 'LIBRARY'
statement -or- LNK1141: failure during build of
exports file CAUSEThe problem occurs because the LIBRARY statement that is generated by the Visual Studio .NET IDE
contains the name of the project that is not enclosed in double quotation marks
("") when the module definition file is added.STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
WORKAROUNDWhen the name contains an embedded space character, enclose
the library name that is generated by the designer in double quotation marks
for the LIBRARY statement in the module definition file (.def).REFERENCESFor additional information about the linker error LNK1118,
see the following MSDN Web site: For additional information about the linker error LNK1141, see the
following MSDN Web site:
Modification Type: | Minor | Last Reviewed: | 1/5/2006 |
---|
Keywords: | kbDesigner kbAppDev kbBug KB814421 kbAudDeveloper kbAudITPRO |
---|
|