Skip to content

Cannot compile any example #1

@ITDPG4

Description

@ITDPG4

Hi, When compiling OregonTransmitter.ino (or any othe example), I receive the following errors:

C:\Users\test\AppData\Local\Temp\ccedKC8s.ltrans0.ltrans.o: In function global constructors keyed to 65535_0_OregonTransmitter_org_v1.ino.cpp.o.1754': <artificial>:(.text.startup+0x66): undefined reference to OregonSensor::OregonSensor(unsigned char, unsigned char, unsigned char, bool)'
C:\Users\test\AppData\Local\Temp\ccedKC8s.ltrans0.ltrans.o: In function setup': C:\Users\test/OregonTransmitter_org_v1\OregonTransmitter_org_v1.ino:16: undefined reference to OregonSensor::init()'
C:\Users\test\AppData\Local\Temp\ccedKC8s.ltrans0.ltrans.o: In function loop': C:\Users\test\OregonTransmitter_org_v1/OregonTransmitter_org_v1.ino:26: undefined reference to OregonSensor::sendTempHumidity(int, unsigned char, bool)'
collect2.exe: error: ld returned 1 exit status
Using library oregon21 in folder: D:\test\Documents\Arduino\libraries\oregon21 (legacy)_

Searching google for a solution it has probably to do with types used, "byte" and "uint8_t". My knowledge of programming is to limited to solve these errors, what do I need to change in the example code to solve the errors?

To reproduce the error, I am using the Arduino IDE (1.8.5, but 1.8.12 has same errors), selected board "Arduino Nano", selected Processor "ATmega328P".

Many thanks in advance,
Zoek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions