01-08-2021, 07:59 AM
I am no wizard in C or delta tau language in general, but I included the ECATMap.h file in my bgcplc that had some nifty pshm pointers that I wanted to use. I had issues when trying to use the unique #defines concerning IOBuffer's, and I kept getting compile errors stating:
looking at my ECATMap.h file:
removing the space before a '(x)' fixed my compile error
Is this an auto-generation bug? This is similarly occuring in the ECATMap.pmh file as well.
Code:
expected ';' before 'pshm'
looking at my ECATMap.h file:
Code:
#define Slave_1003_EL1252_1003_1D09_16_SysTime (x) pshm->ECAT[0].IOBuffer[32 + x]
removing the space before a '(x)' fixed my compile error
Code:
#define Slave_1003_EL1252_1003_1D09_16_SysTime(x) pshm->ECAT[0].IOBuffer[32 + x]
Is this an auto-generation bug? This is similarly occuring in the ECATMap.pmh file as well.