Could be the install, although it went smoothly.Native Mode Compiler wrote: Internal Error: an error occurred while building ZXOnly.zxc
>Exit code: 1
-Don
Could be the install, although it went smoothly.Native Mode Compiler wrote: Internal Error: an error occurred while building ZXOnly.zxc
>Exit code: 1
For some reason, the compiler is trying to compile for a '24A, but the preprocessor is including all of the native specific code due toNative Mode Compiler wrote: >"C:\Program Files\ZBasic\zbasic.exe" --target-device=ZX24a
Code: Select all
Option TargetDevice ZX24N
I don't think that is it. The --target-device option comes from what is defined in the Device Options dialog in the IDE. The TargetDevice option in the BAS files takes precedence over the compiler command line option. You can verify that this makes no difference by change the device in the Device Options menu.Don_Kirby wrote:This might have something to do with it...For some reason, the compiler is trying to compile for a '24A, but the preprocessor is including all of the native specific code due toNative Mode Compiler wrote: >"C:\Program Files\ZBasic\zbasic.exe" --target-device=ZX24aCode: Select all
Option TargetDevice ZX24N
Code: Select all
Internal Error: an error occurred while building ZXOnly.zxc
...which equates to the following C codeCompiler wrote: AlarmTask.c:57: error: expected expression before ')' token
AlarmTask.c:58: error: expected expression before ')' token
AlarmTask.c:172: error: expected expression before ')' token
AlarmTask.c:173: error: expected expression before ')' token
Code: Select all
zv_SensorAlarmRequest = ZX_BOOL((32 & zv_Alarm1Request) & ());
zv_MaxROCRequest = ZX_BOOL((16 & zv_Alarm1Request) & ());
zv_SensorAlarmRequest = ZX_BOOL((1 & zv_Alarm1Request) & ());
zv_MaxROCRequest = ZX_BOOL((2 & zv_Alarm1Request) & ());
It's a native mode code generation issue. If you post the corresponding ZBasic Code along with the variable definitions I should be able to resolve it fairly quickly. It may be better to send me an update for the code you sent earlier. That way I'll have everything that I need.Don_Kirby wrote:The code still compiles fine for VM devices, but there have been changes made recently.