# C++ Builder 2007 support - Test Build

**URL:** <https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629>\
**Category:** Discussion\
**Created:** [October 26, 2007, 7:12am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629 "2007-10-26T07:12:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [October 26, 2007, 7:12am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/1 "2007-10-26T07:12:26Z")

</div>

Hi All

Here is a test build with C++Builder 2007 support :  
  
https://www.finalbuilder.com/downloads/finalbuilder/550/FB550\_466.exe  
  
The support has been added to the C++Builder 2006 action, be sure to select the correct compiler version. Also, if you added a BDS project variable (in order to use msbuild) then remove it to avoid conflicting with the action, which set the environment variable to the correct value depending on the compiler version.

This update to the C++Builder 2006 action also provides support for choosing an external resource compiler other than borland's brcc (which has problems with high color & vista icons) and the ability to specify a manifest file (for themes and vista UAC support).

Please report any issues with this action direct to support at finalbuilder.com

&nbsp;

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [December 22, 2009, 2:52am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/2 "2009-12-22T02:52:24Z")

</div>

I get this error when trying to run with BCB2009 using the action C++Builder2006/7/8 with C++ Builder version set to 2009. Where does MSBuild come from?   
  
  
  
 C++Builder 2006/7/8 Project [D:\continuous\_integration\src\projects\SusPush\Tests\UnitTest1.cbproj]   
 Status: Error   
 Date: 22/12/2009   
 Time: 15:41:45:005   
 End: 15:41:46:671   
 Duration: 00:00:01:666   
  
 Action Messages:   
 Generating Resource File   
 Compiling resource file : UnitTest1.rc   
 Borland Resource Compiler Version 5.40   
 Copyright © 1990, 1999 Inprise Corporation. All rights reserved.   
 Lines: Current 0, Total 0   
 New File: UnitTest1.rc   
 Lines: Current 1, Total 0   
 New File: D:\continuous\_integration\src\projects\SusPush\Tests\UnitTest1.rc   
 Lines: Current 0, Total 0   
 New File:   
 Resource Compiler OK.   
 Running MSBuild with parameters : /property:Config="" /nologo /target:“Build” “D:\continuous\_integration\src\projects\SusPush\Tests\UnitTest1.cbproj” /logger:“C:\Program Files (x86)\FinalBuilder 6\FinalBuilder.MSBuild.Tasks.dll” /noconlog   
 MSBuild returned non zero : 1

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [December 23, 2009, 11:20am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/3 "2009-12-23T11:20:32Z")

</div>

Hi Paul   
  
 MSBuild is part of the .net framework, it’s microsoft’s build engine. CB2009 uses MSBuild rather than make, it’s much easier to work with from our point of view. Please try this build, I did make some minor changes to some error handling in the action last week which helped resolve a similar issue for another customer :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/630/FB630\_1864.exe](https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1864.exe)

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [January 4, 2010, 10:28am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/4 "2010-01-04T10:28:35Z")

</div>

&nbsp;Trying with 6.3.0.1864 gives exactly the same issue ie.

&nbsp;

C++Builder 2006/7/8 Project [D:\continuous\_integration\src\projects\DKProgrammer\DK2Prog.cbproj]

&nbsp;&nbsp; &nbsp;Status: Error

&nbsp;&nbsp; &nbsp; &nbsp;Date: 04/01/2010

&nbsp;&nbsp; &nbsp; &nbsp;Time: 11:11:14:678

&nbsp;&nbsp; &nbsp; &nbsp; End: 11:11:16:806

&nbsp;&nbsp;Duration: 00:00:02:128

&nbsp;

Action Messages:

Running MSBuild with parameters : /property:Config="" /nologo /target:"Build" &nbsp;"D:\continuous\_integration\src\projects\DKProgrammer\DK2Prog.cbproj" /logger:"C:\Program Files (x86)\FinalBuilder 6\FinalBuilder.MSBuild.Tasks.dll" /noconlog

MSBuild returned non zero : 1

&nbsp;

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [January 4, 2010, 7:57am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/5 "2010-01-04T07:57:29Z")

</div>

Hi Paul   
  
 It looks like you have not specified a config. That should still work (it should build all configs), but it might be worth trying with a config set.

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [January 5, 2010, 9:07am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/6 "2010-01-05T09:07:10Z")

</div>

MSBuild without a config from the command line works fine:   
  
 C:\src\projects\DKProgrammer\>C:\WINDOWS\[Microsoft.NET](http://Microsoft.NET)\Framework\v3.5\msbuild /property:Config="" /nologo /target:“Build” “c:\src\projects\dkprogrammer\dk2prog.cbproj” /logger:“C:\Program Files\FinalBuilder 6\FinalBuilder.MSBuild.Tasks.dll”   
 /noconlog   
  
  
 Also how can I tell which MSBuild.exe FB is using - as I have numerous [MS.net](http://MS.net) versions installed and therefore numerous MSBuild.exe?

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [January 5, 2010, 9:53am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/7 "2010-01-05T09:53:25Z")

</div>

The version of msbuild used for the CBuilder action is v2.   
  
 The error handling in the CBuilder MSBuild tasks is somewhat lacking. We did have another user with a similar problem that was caused by some environment variables being set that shouldn’t be. This is especially a problem when you have multiple versions of CBuilder installed, as they all rely in the same variables but need different values. Can you check if there is a system variable CB2007DIR in FB, as the value of this variable is used to set the BDS environment variable before running msbuild. If this variable is wrong then msbuild typically barfs without any explanation.

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [January 7, 2010, 10:48am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/8 "2010-01-07T10:48:06Z")

</div>

&nbsp;There is a FB system variable: &nbsp; CB2009DIR &nbsp;but as I have never install CB2007 on the machine that variable is undefined.

(I hijacked this thread to start a discussion about BCB 2009 issues!)

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [January 7, 2010, 10:52am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/9 "2010-01-07T10:52:08Z")

</div>

To note there is an environment variable BDS which points to the same location as CB2009DIR

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [January 10, 2010, 10:18am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/10 "2010-01-10T10:18:56Z")

</div>

Hi Paul   
  
 Which operating system are you seeing this on? We have another customer reporting the same issue (but with CB2007), on windows 7 64bit (but it works ok on his xp machine). I’m using windows 7 x64 here on my dev machine and I’ve not been able to reproduce the problem.   
  
 Can you open a command window and type :   
  
 set \> variables.txt   
  
 and then send us the txt file (to support at finalbuilder dot com) so we can try to replicate the environment exactly.

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [January 11, 2010, 9:50am UTC](https://www.finalbuilder.com/forums/t/c-builder-2007-support-test-build/629/11 "2010-01-11T09:50:49Z")

</div>

&nbsp;Thanks for investigating I am using Windows Server 2008 Standard

Email to follow
