-
Notifications
You must be signed in to change notification settings - Fork 39
Undefined reference to countPulseASM when using pulseIn function #75
Comments
Quick guess: Try to append ASM to the project's languages definition. |
@MrPointer Yup, that was it, thanks again! |
@MrPointer I had this problem too, and fixed with your workaround. Thanks! |
@cebas You're probably right - I guess it has something to do with CMake's generator expressions, but I'm not entirely sure. |
In case someone else is having the same issue with Arduino 1.8.11, I had to make it look like the following: in CMakeLists.txt line 8:
in cmake/Platform/Arduino.cmake starting line 1477:
|
@dev10 I'm sorry but there's no such line in the file You're probably confusing with the original arduino-cmake project, which this project continues since it's the only version of this project that had everything written in a single file (indeed |
I had the same issue that was fixed by @dev10's suggestion from the Arduino.cmake file generated by the CLion Arduino plugin, just as a general tip/FYI for other users stumbling across this. |
@dev10 that helped a lot, thanks |
OS: macOS
OS Version: 10.14.2
Platform: Arduino
Platform SDK Version: [Arduino SDK version 1.8.8]
When trying to use the built in "pulseIn" function, I receive an undefined reference to `countPulseASM'
Build Output:
CMakeLists.txt:
Source file:
I believe this might be related to issue 364 in the Arduino-Makefile community and issue 23 from the original Arduino CMake Build System.
Help would be appreciated, thanks!
The text was updated successfully, but these errors were encountered: