Compiler/linker error

I am getting a compiler error and I infer it is having a problem with the header file Bmp.h being included in Bmp.cpp. However it is included in other files as well and it also resides in the same directory. It seems it may be considered a library file which it is not.

Using board 'nano_33_iot' from platform in folder: C:\Users\J\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.12
Using core 'arduino' from platform in folder: C:\Users\J\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.12
Detecting libraries used...
"C:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Og -g3 -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\nano_33_iot" "C:\\Users\\J\\AppData\\Local\\Temp\\arduino-sketch-F1932AB0FE35B3595270F8DB47E8C099\\sketch\\BMP280SPI.ino.cpp" -o nul
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
"C:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Og -g3 -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\nano_33_iot" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\libraries\\SPI" "C:\\Users\\J\\AppData\\Local\\Temp\\arduino-sketch-F1932AB0FE35B3595270F8DB47E8C099\\sketch\\BMP280SPI.ino.cpp" -o nul
Alternatives for myTypes.h: [MyLib]
ResolveLibrary(myTypes.h)
  -> candidates: [MyLib]
"C:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Og -g3 -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\nano_33_iot" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\libraries\\SPI" "-IC:\\Users\\J\\Documents\\Arduino\\libraries\\MyLib" "C:\\Users\\J\\AppData\\Local\\Temp\\arduino-sketch-F1932AB0FE35B3595270F8DB47E8C099\\sketch\\BMP280SPI.ino.cpp" -o nul
Alternatives for Streaming.h: [Streaming]
ResolveLibrary(Streaming.h)
  -> candidates: [Streaming]
"C:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Og -g3 -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\nano_33_iot" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\libraries\\SPI" "-IC:\\Users\\J\\Documents\\Arduino\\libraries\\MyLib" "-IC:\\Users\\J\\Documents\\Arduino\\libraries\\Streaming" "C:\\Users\\J\\AppData\\Local\\Temp\\arduino-sketch-F1932AB0FE35B3595270F8DB47E8C099\\sketch\\BMP280SPI.ino.cpp" -o nul
"C:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Og -g3 -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\nano_33_iot" "-IC:\\Users\\J\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\libraries\\SPI" "-IC:\\Users\\J\\Documents\\Arduino\\libraries\\MyLib" "-IC:\\Users\\J\\Documents\\Arduino\\libraries\\Streaming" "C:\\Users\\J\\AppData\\Local\\Temp\\arduino-sketch-F1932AB0FE35B3595270F8DB47E8C099\\sketch\\Bmp.cpp" -o nul
Alternatives for Bmp.h: []
ResolveLibrary(Bmp.h)
  -> candidates: []
Using library SPI at version 1.0 in folder: C:\Users\J\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.12\libraries\SPI 
Using library MyLib in folder: C:\Users\J\Documents\Arduino\libraries\MyLib (legacy)
Using library Streaming in folder: C:\Users\J\Documents\Arduino\libraries\Streaming (legacy)
Compilation error: Error: 13 INTERNAL: exit status 1

Hi @captainaubrey. Please provide a minimal demonstration sketch I can use to reproduce the issue and I'll investigate.

Thanks!

Thanks for the offer to help.

While preparing what I thought would be an acceptable minimal demonstration sketch (removing self-deprecating slurs, etc) I found the problem. In another header file I had the line
#include <Bmp.h>
instead of
#include "Bmp.h"
thus it wasn't even checking my local directory.

So indirectly you helped me find it.

Thanks again,
Jack

:laughing:

You're welcome. I'm glad to hear you found the problem.