My SoftewareSerial port is "not declared in this scope" compile error

You did not post the entire code, but

#include <SoftwareSerial.h>
SoftwareSerial myPort(10,11); // RX, TX

Should go before void setup.