Re: [Emc-developers] Conditional Compilation Confusion

2023-10-01 Thread andy pugh
On Sun, 1 Oct 2023 at 17:52, andy pugh wrote: > > Building LinuxCNC with RTAI currently fails at hal_speaker. Well, I found the reason, it was preferentially using an old config.h in linuxcnc-dev/include not the one in linuxcnc-dev/src It was only when I added code to the hal_speaker to print ou

[Emc-developers] Conditional Compilation Confusion

2023-10-01 Thread andy pugh
Building LinuxCNC with RTAI currently fails at hal_speaker. error: implicit declaration of function ‘ioperm’ 165 | if (rtapi_ioperm(SPEAKER_PORT, 1, 1) < 0) { (It's a bit complicated by a #define of rtapi_ioperm) But that code should not be compiled: #if !defined(RTAPI_RTAI) /* STEP 1