Combining two sketches

Sebnah:
all that I did was double slash Adafruit_BMP085 bmp; from the document.

That's not what spycatcher2k said though:

spycatcher2k:

Adafruit_BMP085 bmp;

Move this line out of the function.

Look at your working code- that line isn't in a function, where you have it just above setup. In your new code, that line's in a function. spycatcher2k asked you to move it out of the function, not zap it from the document.