Old sketch new IDE

Trying to compile an old sketch w/tabs and the library is in the IDE/libraries directory. I doesn't want to compile.
ERROR MSG:

Using library DogmCA in folder: C:\Program Files (x86)\Arduino\libraries\DogmCA (legacy)
exit status 1
'setupCameraAxePins' was not declared in this scope

I'm sure there is a simple answer I am just not experienced enough to figure it out.

We will need the sketch, links to the required libraries, and which board you're compiling for.

And which version of the IDE. There has recently been a bug revealed in 1.8.6/1.8.7 - maybe more.