Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: Delphi Prism/Compiler    [ Add a report in this area ]  
Report #:  98602   Status: Open
Include directive does not work
Project:  Embarcadero Prism Build #:  5.0.29.893
Version:    2010.1 Submitted By:   Robert Ogren
Report Type:  Basic functionality failure Date Reported:  9/6/2011 7:38:44 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   287483
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
The $include directive does not seem to work in Delphi Prism XE2 (Oxygene version 5.0.29.893). It seems to be completely ignored, so you can even write an invalid file name. It worked in the 2011 spring release.

Try putting {$include whatever.inc} in a file in for example an empty console application, and it will compile anyway. I've also attached a small test application that does not compile because the include directive is ignored.
Steps to Reproduce:
Try putting {$include whatever.inc} in a file in for example an empty console application, and it will compile anyway. I've also attached a small test application that does not compile because the include directive is ignored.
Workarounds
None
Attachment
IncludeFiles.zip
Comments

None

Server Response from: ETNACODE01