Problem with "error:....invalid conversation...."

When attempting to compile for esp8266 or esp32, I get this error about …invalid conversation…" at the line in the code attaches an interrupt to a certain pin–attachInterrupt(sweepPin,sweep_isr,CHANGE). Is this a problem with XOD code generator creating generic code for a C compiler but then using a C++ compiler at compile time ?