Problem with extern SoftwareSerial, for use in mulitple cpp files

Hi,

I am trying to split my code from a huge file to multiple files. I also created a header file for defining the global variables and the prototype functions with success. The problem is that i cannot extern the SowftwareSerial the same way. Could you please provide an example on how to share the software serial between the files.

Tkanks in advance

It would be far more effective for you to post the error message.

And your code.

Sorry for the confusion. I already found the answer here in this link https://arduino.stackexchange.com/questions/39700/global-variables-with-c-in-multiple-files