The following requirements are necessary to run a compiled structure on a 64-bit server :
1) Switch to "Unicode Mode" before compiling ,if the database was converted from 4D 2004 :
In order to compile a database for 64-bit processor it will be necessary to switch to unicode otherwise, the following error will show up:
To switch to Unicode mode open the database Settings window and check the "Unicode mode" option as shown below:
If the database was created with 4D v15.x ,then the Unicode mode is activated automatically.
2) 64-bit compilation using "multi-target compilation" option:
The second important requirement is to generate 64-bit code of the .4DC file this is possible with the "Multi-target compilation (32bit and 64 bit ) option available on the database settings :
When this option is checked the compiler includes both 64-bit and 32-bit code into the .4DC and .4DB files when it's not checked the error below will appear on the server :