digitalWriteFast: compiling error

Hi everybody,
I was curious and wanted to test the digitalWriteFast function for later use in time critical applications.
Therefore I did as suggested: I put the folder called digitalWriteFast, containing digitalWriteFast.h and a keyword file, into my arduino library alongside the EEPROM, Ethernet, Firmata, etc folders..

However, if I compile the simple sketch below I get the following error messages:

Blink_with_digitalWriteFast.cpp: In function 'void loop()':
Blink_with_digitalWriteFast:14: error: invalid type argument of 'unary *'
Blink_with_digitalWriteFast:16: error: invalid type argument of 'unary *'

I really don't understand that. Any ideas?
I am working with an Arduino UNO and arduino 1.0.1 at the moment.

Any help or hints would be highly appreciated. Thanks!

#include <digitalWriteFast.h>

int led = 13;

void setup() {
pinMode(led, OUTPUT);
}

void loop() {
digitalWriteFast(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWriteFast(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

Did you restart the IDE? I got:

Binary sketch size: 1,084 bytes (of a 32,256 byte maximum)

Hi Nick, hi everybody,
unfortunately yes, I restarted my IDE.

I also just restarted my computer and I got the same error message:

Blink_with_digitalWriteFast.cpp: In function 'void loop()':
Blink_with_digitalWriteFast:9: error: invalid type argument of 'unary *'
Blink_with_digitalWriteFast:11: error: invalid type argument of 'unary *'

I know this is weird, as I also expected it to work.

Can it have something to do with my operating system???
I am currently working with Windows XP.

try replacing

int led = 13;

with const int led = 13;
or #define led 13

Thanks for the response.

Unfortunatey using the modified code below I get the same error message.

I am puzzled at the moment.

Any further suggestions???

#include <digitalWriteFast.h>
#define led 13

void setup() {
pinMode(led, OUTPUT);
}

void loop() {
digitalWriteFast(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWriteFast(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

Where did you get DigitalWriteFast library from?

I got the folder "dwf.zip" from this link:
http://code.google.com/p/digitalwritefast/downloads/list

http://nootropicdesign.com/forum/viewtopic.php?t=2434

I think this fixes it, not sure yet.

Open file digitalWriteFast.h, add this at first:

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#include <pins_arduino.h>
#endif

When I migrated to IDE 1.6.5r5, I had errors during compile. Modifying the digitalWriteFast.h file as mentioned by heX1625616 worked. I also had problems with the location of the digitalWriteFast directory; I had used the windows installer for the installation of the IDE. I now only use the portable (non Administrator version). I have to put the digitalWriteFast into sketch\libraries directory. I was also having problems with the Wire library until I installed it into the sketch\libraries directory.