Hm so what is really the case do you get this error each and everytime
you compile
or
do you get this error only now and then when compiling
like
compiles successful
compiles successful
compiles successful
compiler-error
compiles successful
compiler-error
compiles successful
compiles successful
...
???
anyway to narrow down the bug
you have to provide more information
what exact type of EP32-cam-board are you using?
to what exact type of EP32-CAM-board did you adjust the arduino-IDE?
and last but not least you should adjust the arduino-IDE to verbose compiler-logging like shown in this tutorial