# Exception Compiling a D2007 app in FB

**URL:** https://www.finalbuilder.com/forums/t/exception-compiling-a-d2007-app-in-fb/1161
**Category:** Discussion
**Created:** [March 30, 2009, 4:27am UTC](https://www.finalbuilder.com/forums/t/exception-compiling-a-d2007-app-in-fb/1161 "2009-03-30T04:27:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dressel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/9e8a1a/32.png) [@dressel](https://www.finalbuilder.com/forums/u/dressel)
#### Post date: [March 30, 2009, 4:27am UTC](https://www.finalbuilder.com/forums/t/exception-compiling-a-d2007-app-in-fb/1161/1 "2009-03-30T04:27:38Z")

</div>

I am getting the following FB exception when trying to compile a Delphi 2007 app:

> Generating Resource File....  
> Including ICON File :e:\TRAK\mainicon.ico  
> Running Borland Resource compiler....  
> Borland Resource Compiler&nbsp; Version 5.40  
> Copyright (c) 1990, 1999 Inprise Corporation.&nbsp; All rights reserved.  
> Resource Compiled OK.  
> Error creating cfg file.  
> **--\> Error expanding variables in Library Path : Variable : DELPHI - does not exist!**

What I don't understand is there is no 'Delphi' variable in my LIbrary path. Here is my path:

> $(BDS)\lib;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDS)\Lib\Indy10;$(BDSCOMMONDIR)\Dcp;$(DXVCL)\Library\Delphi11;E:\delphi comps\IBO\4.8.6\D2007;C:\Program Files\madCollection\madBasic\BDS4;C:\Program Files\madCollection\madDisAsm\BDS4;C:\Program Files\madCollection\madExcept\BDS4;C:\Program Files\madCollection\madExcept\..\Plugins;C:\Program Files\madCollection\madKernel\BDS4;C:\Program Files\madCollection\madSecurity\BDS4;C:\Program Files\madCollection\madShell\BDS4;E:\delphi comps\png\libD2007;C:\Program Files\Raize\CS4\Lib\BDS2007;E:\Delphi Comps\CodeSiteEx\lib2007;E:\Delphi Comps\CodeSiteEx\source;E:\Delphi Comps\OnGuard\LibD2007;E:\Delphi Comps\kbmMemTable\Source\D2007;E:\Delphi Comps\ZLibEx\D2007;E:\Delphi Comps\Steema Software\TeeChart Pro 8.04 Full Source Code\Sources\Compiled\Delphi11\Lib;E:\Delphi Comps\HyperStrings\Lib D2007;C:\Program Files\RemObjects Software\RemObjects SDK for Delphi\Dcu\D11;C:\Program Files\RemObjects Software\RemObjects SDK for Delphi\Source;C:\Program Files\RemObjects Software\RemObjects SDK for Delphi\Source\CodeGen;C:\Program Files\RemObjects Software\RemObjects SDK for Delphi\Source\DataSnap;C:\Program Files\RemObjects Software\RemObjects SDK for Delphi\Source\ZLib;C:\Program Files\RemObjects Software\RemObjects SDK for Delphi\Source\RODX;C:\Program Files\RemObjects Software\RemObjects SDK for Delphi\Source\RODEC;C:\Program Files\RemObjects Software\RemObjects SDK for Delphi\Source\Synapse;$(Everwood)\Bin;C:\Program Files\RemObjects Software\Data Abstract for Delphi\Dcu\D11;C:\Program Files\RemObjects Software\Data Abstract for Delphi\Source;C:\Program Files\RemObjects Software\Data Abstract for Delphi\Source\Drivers;C:\Program Files\RemObjects Software\Pascal Script for Delphi\Dcu\D11;C:\Program Files\RemObjects Software\Pascal Script for Delphi\Source;E:\Delphi Comps\ComponentAce\CompressionMaster\ZipForge\LibD2007;e:\Delphi Comps\RBuilder\Lib;e:\Delphi Comps\RBServer\Lib;E:\Delphi Comps\DreamComps\LibD2007;E:\Delphi Comps\ComponentAce\CompressionMaster\EasyCompressionLibrary\LibD2007;E:\Delphi Comps\LockBox\LibD2007;E:\Delphi Comps\IBOAdmin\LibD2007;E:\Delphi Comps\EHS\LibD2007;E:\Delphi Comps\KWizard\1.7\libD2007;E:\Delphi Comps\Scalabium\Import\2.67\LibD2007

I tried to attach the log file but the system says the file type is not allowed.

What should I be looking for?

&nbsp;

Ed Dressel

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![dressel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/9e8a1a/32.png) [@dressel](https://www.finalbuilder.com/forums/u/dressel)
#### Post date: [March 30, 2009, 6:57am UTC](https://www.finalbuilder.com/forums/t/exception-compiling-a-d2007-app-in-fb/1161/2 "2009-03-30T06:57:30Z")

</div>

I got it working by adding a 'Delphi' user variable and setting it to the same value as the BDS variable. This seems to be a bug in BDS--does anyone know if it's fixed in D2009?
