want to find out a function name in a cpp file

I have an error in my logs as it shows some function name .

  1. I dnt know where is the file.cpp located only i know the machine .

  2. How to find out that the function name is loacated in which path and which file into that machine.

Thanks .

How do you know the source is on the machine? If it is a function name that is generic, you could easily find the wrong code. Plus if the code is in some kind of code archive, like Serena, you cannot search for it. In other words this example may not work but cause you problems....

find / -name '*.cpp'  -exec grep -l function_name {} \;