Error while compiling pulse rate monitor code :Thread-268 stack overflow

whenever i try to compile this code,i get stackoverflow error
followed by
java.util.regex.pattern$grouphead.match(pattern:java:4168)



PulseSensorAmped_Arduino_1dot4.ino (3.01 KB)

What I get, using 1.0.5, compiling for the Mega, is:

sketch_jun05a.ino: In function ‘void setup()’:
sketch_jun05a:37: error: ‘interruptSetup’ was not declared in this scope
sketch_jun05a.ino: In function ‘void loop()’:
sketch_jun05a:47: error: ‘serialOutput’ was not declared in this scope
sketch_jun05a:54: error: ‘serialOutputWhenBeatHappens’ was not declared in this scope
sketch_jun05a.ino: At global scope:
sketch_jun05a.ino:30: warning: ‘serialVisual’ defined but not used

Notice how much more information I provided than you did.

sujan32:
whenever i try to compile this code,i get stackoverflow error

Yes, the code does not compile error-free, but I see completely different compile errors:
There are several function calls within the ino file for functions which are never are declared in the code:

sketch_jun05a:37: error: 'interruptSetup' was not declared in this scope

sketch_jun05a:47: error: 'serialOutput' was not declared in this scope

serialOutput() ;

The code has errors. Check the source where you got the code from!

Find and fix them OR download and use a corrected version!
Perhaps ask the one who made that garbage code version!