Nucleo and Nextion

Good afternoon. Want to forge the link Nucleo and Nextion. I connected the SoftWareSerial library to the program, but the compiler immediately throws an error 18 on line 31 in the SoftWareSerial file.cpp. Why?

This needs a little bit more context for anybody to be able to assist.