Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem getting XE2 to compile anything 4

Status
Not open for further replies.

zubiriguy

Programmer
Dec 17, 2011
2
US
I recently loaded XE2, but I must be doing something wrong, probably something simple. Whenever I try to compile a program, whether an old one that compiled under XE, or a sample program from the XE2 installation, I get the same error message:
[error error] Invalid PLATFORM variable "HPD". etc.
Then it says it cannot find any units (Windows, SysUtils, etc.) Any suggestions? Thanks in advance!
 
This occurs because XE2 tries to create a PLATFORM system variable to determine which set of units to use during compile, 32 or 64 bit versions. However, what the designers of XE2 failed to take into account was that HP and some other computer manufacturers were already using that particular system variable for their own purposes, and so XE2 cannot create that system variable. Clearing out the PLATFORM variable from the OS will not harm the running of your computer, and allow XE2 to compile.
 
Thanks guys-I do have an HP computer and clearing out the environment variable as you suggested did fix the problem!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top