Diffrent ways to travers buildetails of a build definition with vs 2005 and vs 2008

 

Sometimes you need traverse the build details for a build definition and fetch their information.

I have the following code for TFS2008. Since the tfs2005 variant is almost not documented, it tooks me almost a whole day to figure out some “deprecated” features by TFS2005 what does the same job, but written differently.

TFS2008:

 

TFS2005:

 

 

 

 

引用\[2\]中提到的问题是关于符号"_main"被重新定义的错误。这个错误通常发生在链接过程中,表示在两个或多个目标文件中都定义了相同的_main函数。在你的情况中,错误信息显示_main函数在"./main.obj"和"./source/main.obj"两个目标文件中都被定义了。 这个错误可能是由于重复包含了同一个源文件导致的。你可以检查一下你的源文件中是否有重复的包含语句,特别是包含了同一个头文件的语句。另外,你还可以检查一下你的项目结构,确保每个源文件只被编译一次。 另外,引用\[2\]中提到的使用extern "C"来解决C库头文件引用的问题可能与你的错误无关。这个用法主要是用于在C++代码中引用C库的头文件,以确保C++编译器正确处理C库的函数命名和链接。 总结一下,要解决错误#10056: symbol "_main" redefined,你需要检查源文件中的重复包含语句,并确保每个源文件只被编译一次。如果问题仍然存在,你可能需要进一步检查你的项目结构和编译选项,以确定是否有其他原因导致了这个错误的发生。 #### 引用[.reference_title] - *1* [C++中的那些报错之“[Error] ‘int y1‘ redeclared as diffrent kind of symbol”](https://blog.csdn.net/XIOAGANG666/article/details/128814727)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [ld: error: undefined symbol: did you mean: extern “C“](https://blog.csdn.net/lancewoo/article/details/124898207)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值