传统VC ++ / VC#Project的不稳定构建错误 - WPP相关

时间:2016-08-15 03:36:13

标签: c# c++ visual-studio visual-c++ visual-studio-2005

我正在研究最近继承的Visual Studio 2005项目,该项目由C ++和C#组成。我有一个奇怪的问题,一台计算机构建一个特定的解决方案就好了,而另一台计算机或我的同事的机器(具有相同的操作系统,.NET,DDK,平台SDK等)的尝试遇到特定子项目的构建错误在解决方案中。对于遇到同样问题但未找到任何有关此主题的建议的人,我已经搜索过高低。

这是安装在Windows XP,.NET 2.0和3.5上的Visual Studio 2005。

所有错误似乎都与WPP / tracewpp有关。这是奇怪的,因为WPP跟踪正在解决方案中的所有其他子项目,减去一些。有一个预构建事件来运行tracewpp.exe,并且这些类都具有对WPP函数的调试引用。

以下是失败版本的输出示例:

12>ServerRunnerNetwork.cpp
11>Compiling...
11>ChatChannelMember.cpp
12>.\ServerRunnerNetwork.cpp(172) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp172' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(173) : error C2065: 'TRACE_FLAG_SRUNNER' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(172) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp172': identifier not found
12>.\ServerRunnerNetwork.cpp(188) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp188' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(188) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp188': identifier not found
12>.\ServerRunnerNetwork.cpp(208) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp208' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(208) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp208': identifier not found
12>.\ServerRunnerNetwork.cpp(211) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp211' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(211) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp211': identifier not found
12>.\ServerRunnerNetwork.cpp(237) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp237' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(237) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp237': identifier not found
12>.\ServerRunnerNetwork.cpp(250) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp250' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(250) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp250': identifier not found
12>.\ServerRunnerNetwork.cpp(255) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp255' : undeclared identifier
11>ChatChannel.cpp
12>.\ServerRunnerNetwork.cpp(255) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp255': identifier not found
12>.\ServerRunnerNetwork.cpp(299) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp299' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(299) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp299': identifier not found
12>.\ServerRunnerNetwork.cpp(347) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp347' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(348) : error C2065: 'TRACE_FLAG_SRUNNER_NET' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(347) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp347': identifier not found
12>.\ServerRunnerNetwork.cpp(362) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp362' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(362) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp362': identifier not found
12>.\ServerRunnerNetwork.cpp(390) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp390' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(390) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp390': identifier not found
12>.\ServerRunnerNetwork.cpp(446) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp446' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(446) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp446': identifier not found
12>.\ServerRunnerNetwork.cpp(472) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp472' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(472) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp472': identifier not found
12>.\ServerRunnerNetwork.cpp(494) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp494' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(494) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp494': identifier not found
12>.\ServerRunnerNetwork.cpp(520) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp520' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(520) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp520': identifier not found
12>.\ServerRunnerNetwork.cpp(534) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp534' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(534) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp534': identifier not found
12>.\ServerRunnerNetwork.cpp(553) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp553' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(553) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp553': identifier not found
12>.\ServerRunnerNetwork.cpp(597) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp597' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(597) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp597': identifier not found
12>.\ServerRunnerNetwork.cpp(602) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp602' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(602) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp602': identifier not found
11>chat_log.cpp
12>.\ServerRunnerNetwork.cpp(655) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp655' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(655) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp655': identifier not found
12>.\ServerRunnerNetwork.cpp(693) : warning C4003: not enough actual parameters for macro 'WPP_CALL_ServerRunnerNetwork_cpp693'
12>.\ServerRunnerNetwork.cpp(693) : error C2059: syntax error : ')'
12>.\ServerRunnerNetwork.cpp(694) : warning C4002: too many actual parameters for macro 'WPP_CALL_ServerRunnerNetwork_cpp694'
12>.\ServerRunnerNetwork.cpp(695) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp695' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(695) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp695': identifier not found
12>.\ServerRunnerNetwork.cpp(704) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp704' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(704) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp704': identifier not found
12>.\ServerRunnerNetwork.cpp(751) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp751' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(751) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp751': identifier not found
12>.\ServerRunnerNetwork.cpp(756) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp756' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(756) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp756': identifier not found
12>.\ServerRunnerNetwork.cpp(771) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp771' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(771) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp771': identifier not found
12>.\ServerRunnerNetwork.cpp(804) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp804' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(804) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp804': identifier not found
12>.\ServerRunnerNetwork.cpp(874) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp874' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(874) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp874': identifier not found
12>.\ServerRunnerNetwork.cpp(956) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp956' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(956) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp956': identifier not found
12>.\ServerRunnerNetwork.cpp(1086) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp1086' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(1086) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp1086': identifier not found
12>.\ServerRunnerNetwork.cpp(1239) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp1239' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(1239) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp1239': identifier not found
12>.\ServerRunnerNetwork.cpp(1309) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp1309' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(1309) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp1309': identifier not found
12>.\ServerRunnerNetwork.cpp(1474) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp1474' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(1474) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp1474': identifier not found
12>.\ServerRunnerNetwork.cpp(1490) : error C2065: 'WPP_ANNOTATE_ServerRunnerNetwork_cpp1490' : undeclared identifier
12>.\ServerRunnerNetwork.cpp(1490) : error C3861: 'WPP_CALL_ServerRunnerNetwork_cpp1490': identifier not found

请告诉我所需的任何其他信息,我会更新我的答案。

0 个答案:

没有答案