I'm Trying to use this OneWire library
http://www.pjrc.com/teensy/td_libs_OneWire.html so I wrote this simple test code
#include <OneWire.h>
void setup()
{
/* add setup code here */
}
void loop()
{
/* add main program code here */
}
I get this result from Micro Build
Compiling 'Test' for 'Arduino Uno'
BSeries.cpp : No such file or directory
BSeries.cpp : : In member function 'virtual float BSeries::getTemperature(NewOneWire*)':
BSeries.cpp : 'byte' was not declared in this scope
BSeries.cpp : expected `;' before 'lowByte'
BSeries.cpp : expected `;' before 'highByte'
BSeries.cpp : 'highByte' was not declared in this scope
BSeries.cpp : 'lowByte' was not declared in this scope
DallasTemperature.cpp : No such file or directory
DallasTemperature.cpp : : In member function 'void DallasTemperature::beginCommunication()':
DallasTemperature.cpp : 'delay' was not declared in this scope
DallasTemperature.cpp : : In member function 'float DallasTemperature::getTemperature()':
DallasTemperature.cpp : 'byte' was not declared in this scope
DallasTemperature.cpp : expected `;' before 'lowByte'
DallasTemperature.cpp : expected `;' before 'highByte'
DallasTemperature.cpp : 'highByte' was not declared in this scope
DallasTemperature.cpp : 'lowByte' was not declared in this scope
NewOneWire.cpp : No such file or directory
OneWire.cpp : No such file or directory
OneWire.cpp : : In constructor 'OneWire:
neWire(uint8_t)':
OneWire.cpp : 'digitalPinToPort' was not declared in this scope
OneWire.cpp : 'digitalPinToBitMask' was not declared in this scope
OneWire.cpp : 'portOutputRegister' was not declared in this scope
OneWire.cpp : 'portInputRegister' was not declared in this scope
OneWire.cpp : 'portModeRegister' was not declared in this scope
OneWire.cpp : : In member function 'uint8_t OneWire::reset()':
OneWire.cpp : 'INPUT' was not declared in this scope
OneWire.cpp : 'pinMode' was not declared in this scope
OneWire.cpp : 'delayMicroseconds' was not declared in this scope
OneWire.cpp : 'digitalRead' was not declared in this scope
OneWire.cpp : 'digitalWrite' was not declared in this scope
OneWire.cpp : 'OUTPUT' was not declared in this scope
OneWire.cpp : 'delayMicroseconds' was not declared in this scope
OneWire.cpp : : In member function 'void OneWire::write_bit(uint8_t)':
OneWire.cpp : 'delayMicroseconds' was not declared in this scope
OneWire.cpp : : In member function 'uint8_t OneWire::read_bit()':
OneWire.cpp : 'delayMicroseconds' was not declared in this scope
OneWire.cpp : : In member function 'void OneWire::write(uint8_t, uint8_t)':
OneWire.cpp : 'INPUT' was not declared in this scope
OneWire.cpp : 'pinMode' was not declared in this scope
OneWire.cpp : 'digitalWrite' was not declared in this scope
OneWire.cpp : : In member function 'void OneWire::depower()':
OneWire.cpp : 'INPUT' was not declared in this scope
OneWire.cpp : 'pinMode' was not declared in this scope
S20Series.cpp : No such file or directory
S20Series.cpp : : In member function 'virtual float S20Series::getTemperature(NewOneWire*)':
S20Series.cpp : 'byte' was not declared in this scope
S20Series.cpp : expected `;' before 'lowByte'
S20Series.cpp : expected `;' before 'highByte'
S20Series.cpp : 'highByte' was not declared in this scope
S20Series.cpp : 'lowByte' was not declared in this scope
StratBase.cpp : No such file or directory
Error compiling
This code compiles from the standard Arduino IDE but not with Visual Micro. I have checked the content of OneWire.h and see that Bseries.cpp is nowhere referenced in the code.
Why does code that is not part of the program cause compilation errors?