NRF24l01 and Mbed OS

I previously posted asking about libraries with mbed OS.

Most of the libraries I have used have been successful.

I have run into a problem with this wireless chip. (NRF24l01).

I have been using this library in mbed classic:

However when compiling I receive an error:
error: no matching function for call to ‘mbed::SPI::SPI(PinName&, PinName&, PinName&, PinName)’
spi = new SPI( mosi, miso, sclk, NC ); //SPI (PinName mosi, PinName miso, PinName sclk, PinName _unused=NC)

Does anyone have any idea what would be causing this or a library compatible with Mbed OS for the chip?

Please share your target , and PinNames you use for SPI… Does the code compile for the same target in mbed classic?

It was failing due to my header file passing a null parameter to the spi causing the whole thing to fail. Deleting the parameter fixed the problem.