Pages: [1]   Go Down
Author Topic: Cannot include Wiring.h in Library  (Read 749 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I try to get an old program running which uses the Libraries by Pololu. When I try to compile I get the following errors:

PololuQTRSensors.cpp:109:75: error: wiring.h: No such file or directory

PololuQTRSensors.cpp:545: error: 'delayMicroseconds' was not declared in this scope

Why isnt it possible to include wiring.h in the Library? If I delete the include statement in the library only the last error persists. So it really seams to be related to the missing wiring.h...

Daniel
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 45978
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Some things that might be useful for you to tell us include which version of the IDE you are using, which OS you are on, what is in your sketch, and where you got the library that you are now having difficulties with.

I have a wiring.h file in each of the 4 versions of Arduino that I have installed (17, 18, 19, & 20) on Win 7 64 bit.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I am using Arduino 19. I pasted the library here: http://pastebin.com/CB9KgZdm

The error occurs in line 109.

The library is located in ~/Arduino/libraries/Pololu...

If I just include this library in my code the error occurs.

Daniel
Logged

Pages: [1]   Go Up
Jump to: