I am trying to use GPIO pin P7.3 in my file , but it was generating error.

 I am trying to use GPIO pin P7.3 in my file, but it was generating an error. If i use the same pin in the Main function it works fine.  And also if i am calling SPIwrite in  my file , it generates an error , but If I call in main function it works fine.