http://bugs.winehq.org/show_bug.cgi?id=34938
Bug #: 34938 Summary: 64-bit cl.exe is failed with error code 2 when using long decorated name Product: Wine Version: 1.7.6 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: loentar@gmail.com Classification: Unclassified
Created attachment 46556 --> http://bugs.winehq.org/attachment.cgi?id=46556 test source file
64-bit cl.exe (on 64-bit wineprefix) finishes instantly (without any warnings or errors) with error code 2 when source code contain long decorated name. Other source files is compiled fine.
When compiling the same source code with 32-bit cl.exe (on 32-bit wineprefix) it show warnings "decorated name length exceeded" and compiles fine.
on 64-bit (doesn't work):
cl /nologo decorated-test.cpp /Fodecorated-test.obj
decorated-test.cpp
echo %ERRORLEVEL%
2
dir /B decorated-test.obj
File not found.
on 32-bit (works):
cl /nologo decorated-test.cpp /Fodecorated-test.obj
decorated-test.cpp
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(212) : warning C4503: 'std::_Tree<_Traits>::erase' : decorated name length exceeded, name was truncated .....
echo %ERRORLEVEL%
0
dir /B decorated-test.obj
decorated-test.obj