Help needed please

Hello All, I am new here, and to Arduino and programming, I have been trying to compile some someftware.

I am having a problem compiling this code.

////////////////////////////////////////////////////////////
// SOUND TRIGGER
////////////////////////////////////////////////////////////
#ifdef ENABLE_SOUND_TRIGGER
soundVal = analogRead(SOUND_TRIGGER_ANALOG_PIN);
if (soundVal > SOUND_THRESHHOLD)
{
digitalWrite(CAMERA_FLASH_PIN, HIGH);
I am getting an error in the second line
Erroe:expected constructor, destructor, or type conversion before “=” token.
any ideas as to what is needed. Thanks Ernie

try putting it in either a setup() function, or a loop() function, like:

////////////////////////////////////////////////////////////
// SOUND TRIGGER
////////////////////////////////////////////////////////////
void setup()
{
   pinMode(SOUND_TRIGGER_ANALOG_PIN, INPUT);
   pinMode(CAMERA_FLASH_PIN, OUTPUT);
}
void loop()
{
    soundVal = analogRead(SOUND_TRIGGER_ANALOG_PIN);
    if (soundVal > SOUND_THRESHHOLD)
    {
        digitalWrite(CAMERA_FLASH_PIN, HIGH);
    }
}

And don't forget to declare the CAMERA_FLASH_PIN, SOUND_TRIGGER_ANALOG_PIN, etc..

Check out one of the samples online at http://arduino.cc/en/Tutorial/HomePage

Thank you my freind, your help is much appreciated, I will give this a try. Thanks again Ernie