# C++ Compiler Action BPI/LIB Output Problem

**URL:** https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095
**Category:** Discussion
**Created:** [February 1, 2009, 6:38am UTC](https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095 "2009-02-01T06:38:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![boylank](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@boylank](https://www.finalbuilder.com/forums/u/boylank)
#### Post date: [February 1, 2009, 6:38am UTC](https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095/1 "2009-02-01T06:38:17Z")

</div>

I am having a strange problem compiling a BCB 6 project with the C++ Builder Compiler Action.&nbsp; I have a varialbe in the BPI/LIB Output option, like %myoutputdir%.&nbsp; However the BPI/LIB Output option seems to ONLY look at the value that is defined for the myoutput variable in the "Tools \> Edit Variables" menu.&nbsp; In my case, I am passing the variable with a new value in as an Action List Parameter.&nbsp; All of the other options on the Directories tab of the Compiler Action that use the same variable seem to work correctly.&nbsp;&nbsp; Am I doing something wrong or might this be a problem?

Thanks,

Kevin

&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: [February 1, 2009, 8:46am UTC](https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095/2 "2009-02-01T08:46:44Z")

</div>

Hi Kevin   
  
 Are you declaring an action list parameter with the same name as the variable? I’m not sure I’m following what you are doing, if you send your fbproject to support at [finalbuilder.com](http://finalbuilder.com) I will take a look at it on Monday.

---

<div class="post-metadata">

### Author: ![boylank](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@boylank](https://www.finalbuilder.com/forums/u/boylank)
#### Post date: [February 1, 2009, 4:20am UTC](https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095/3 "2009-02-01T04:20:15Z")

</div>

I tried both ways. I had a variable declared (through Tools \> Edit Variables) and I declared an action list parameter by the same name but with a different value. In that case, it only used the value declared in Tools \> Edit Variables. So I deleted the variable from Tools \> Edit Variables and just left it as a parameter in the Action List. In that case, when FB saw the variable in the BPI/LIB Output option, it said the variable did not exist. So it seems that if the BPI/LIB field contains a variable, it does not look at what is passed in through the parameter list, it only looks for variables that are defined in Tools \> Edit Variables.   
  
 I’m not sure how to send the fbproject yet. I’ll look into that if what I said here is still confusing.   
  
 Thanks,   
  
 Kevin

---

<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: [February 2, 2009, 12:11pm UTC](https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095/4 "2009-02-02T12:11:18Z")

</div>

Hi Kevin   
  
 Send the project (yourproject.fbp6 or yourproject.fbz6) file to support at [finalbuiulder.com](http://finalbuiulder.com) and I’ll take a look. I’m not able to reproduce the problem here, and looking at our source it does expand variables before running bpr2mak.

---

<div class="post-metadata">

### Author: ![boylank](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@boylank](https://www.finalbuilder.com/forums/u/boylank)
#### Post date: [February 2, 2009, 3:38am UTC](https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095/5 "2009-02-02T03:38:38Z")

</div>

Thanks Vincent, I just sent it.   
  
 Kevin

---

<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: [February 2, 2009, 5:54am UTC](https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095/6 "2009-02-02T05:54:19Z")

</div>

Hi Kevin   
  
 Thanks, found and fixed the problem. A new build is running now, I’ll post a link here when it’s uploaded.

---

<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: [February 2, 2009, 7:08am UTC](https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095/7 "2009-02-02T07:08:15Z")

</div>

Hi Kevin   
  
 here’s the new build :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/620/FB620\_1295.exe](https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1295.exe)

---

<div class="post-metadata">

### Author: ![boylank](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/e0b2c6/32.png) [@boylank](https://www.finalbuilder.com/forums/u/boylank)
#### Post date: [February 2, 2009, 1:54am UTC](https://www.finalbuilder.com/forums/t/c-compiler-action-bpi-lib-output-problem/1095/8 "2009-02-02T01:54:10Z")

</div>

THANKS! Everything works now! I appreciate the fast help.

Kevin
