Porting to XE5 and the “W1030 Invalid compiler directive: ‘true'” warning

Friday, March 14th, 2014 | Dennis D. Spreen | Delphi Programming, Delphi XE5

If you port your application to Delphi XE5 and you receive this warning

[dcc32 Warning] W1030 Invalid compiler directive: 'true'

then edit the ‘Build Configurations (Debug)’ settings and change the setting
“Debug information” from “True”

W1030 wrong setting



to “Debug Information” (located at “Delphi Compiler -> Compiling -> Debugging”):

W1030 correct setting

 

and the warning will be gone.

Tags:

3 Comments to Porting to XE5 and the “W1030 Invalid compiler directive: ‘true'” warning

kibab
March 14, 2014

This problem also happens with new projects created with XE5.2, and never touched with other Delphi versions.
From time to time I’m seeing it in small helper project, that was created in XE5.2 – however I’m not able to find out steps to reproduce and QC it.
Mostly I’m seeing it when I do build be MSBuild.
Currently I’ve set this Warning as an Error, so when it shows in IDE it will be easier to know what I have done before, that triggered that error.
I think that it’s because of buggy project configuration inheritance (like VersionInfo is totally broken…)

Jeroen Wiert Pluimers
March 16, 2014

This sounds very similar to the msbuild issue I blogged about a while ago “When the Delphi XE5 commandline compiler fails with error F1026: File not found: ‘False.dpr’“:

http://wiert.me/2013/11/20/when-the-delphi-xe5-commandline-compiler-fails-with/

Next time I see that I will try your solution. I hope it works as it is a lot easier than my solution.

Thanks a lot for your post!

–jeroen

Dennis
March 17, 2014

It acutally is the same error – it outputs “false” as the command line argument for Debug Informations which isn’t recognized by the compiler. If not yet done, I’ll QC it.

Leave a comment

About Dennis D. Spreen

I'm an avid programmer working on a variety of platforms in a variety of languages with a wide technical interest.

Search

QR Code

Categories