Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Project Management/Project Options    [ Add a report in this area ]  
Report #:  89243   Status: Closed
Delphi include path is not considered for Delphi source files in BCB projects
Project:  C++Builder Build #:  15.0.3890.34076
Version:    15.0 Submitted By:   Florent Ouchet
Report Type:  Basic functionality failure Date Reported:  10/26/2010 3:48:47 AM
Severity:    Critical / Show Stopper Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   280957
Resolution: Duplicate (Resolution Comments) Resolved in Build: :
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
When a C++Builder project contains some Delphi source files, the Delphi include path is not properly filled to the Delphi compiler. There is no way to specify additional include directories.

See steps and attached project.

The option -I passed to DCC32 is incomplete, it does not contain additional paths of project options:

Here is the -I option:
-I"c:\program files\embarcadero\rad studio\8.0\include\windows\crtl\FR";"c:\program files\embarcadero\rad studio\8.0\include\windows\rtl\FR";"C:\Program Files\Embarcadero\RAD Studio\8.0\include\boost_1_39\boost\tr1\tr1";"C:\Program Files\Embarcadero\RAD Studio\8.0\include\boost_1_39";"c:\program files\embarcadero\rad studio\8.0\include";"c:\program files\embarcadero\rad studio\8.0\include\windows\crtl";"c:\program files\embarcadero\rad studio\8.0\include\dinkumware";"c:\program files\embarcadero\rad studio\8.0\include\windows\sdk";"c:\program files\embarcadero\rad studio\8.0\include\windows\rtl";"c:\program files\embarcadero\rad studio\8.0\include\windows\vcl";"C:\Documents and Settings\All Users\Documents\RAD Studio\8.0\hpp"  

It should contain "included_path".
Steps to Reproduce:
either open the attached project or follow the following steps:

1. Create a new C++Builder console project
2. Add a new Delphi unit to this project
3. in this unit, add the following code

{$I someincludedfile.inc}

4. save your project in a directory
5. create a new text file, named someincludedfile.inc, and save it in a subdirectory: the relative file name is included_path\someincludedfile.inc
6. Open the project options --> Delphi Compiler --> Browsing path
7. Add "included_path" to the list of path
8. compile the project

exp: it compiles since all paths are ok
act: it fails to open the included file because the command line is incorrect

Workarounds
Specify relative path inside the {$I } command.
Unfortunately, this is not always possible, one might rely on compiler inclusion path!!!
Attachment
test_include.zip
Comments

None

Server Response from: ETNACODE01