Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `analogReference' #2

Open
Mycah opened this issue Dec 21, 2016 · 1 comment
Open

undefined reference to `analogReference' #2

Mycah opened this issue Dec 21, 2016 · 1 comment

Comments

@Mycah
Copy link

Mycah commented Dec 21, 2016

`Arduino: 1.6.13 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

Build options changed, rebuilding all
libraries\THERMISTOR\thermistor.cpp.o:(.text._ZN10THERMISTOR4readEv+0x34): undefined reference to `analogReference'

libraries\THERMISTOR\thermistor.cpp.o:(.text._ZN10THERMISTOR4readEv+0x6f): undefined reference to `analogReference'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.`

Attempting to build your sample on a NodeMCU 1.0 using the ESP-12E with the arduino firmware returns this error.

From what I've read the ESP-12E should support this function, it does have an analog read pin.

Using 2.3.0 (latest as of now) of: https://github.com/esp8266/Arduino

Any suggestions?

@tmeysson
Copy link

tmeysson commented Dec 3, 2018

2 years later, same issue with an ESP32.
Quick and dirty fix: go into thermistor.cpp and comment out the analogReference call.
A bit better: put it into an #ifndef 'something' depending on the board you have that problem with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants