xcoder123 / MAX30100

Driver for MAX30100 using arduino
MIT License
105 stars 32 forks source link

VisualMicro could not compile #5

Closed Kabron287 closed 5 years ago

Kabron287 commented 5 years ago

Strange, your code works with ArduinoIDE, but could not be linked with VisualMicro, giving the following errors: `core.a(main.cpp.o)*: (.literal._Z8loopTaskPv+0x4): undefined reference to setup()

Error linking for board M5Stack-Core-ESP32 Debug build failed for project 'MAX30100' core.a(main.cpp.o)*: (.literal._Z8loopTaskPv+0x8): undefined reference to loop()

core.a(main.cpp.o): In function loopTask(void) main.cpp:20: undefined reference to setup() main.cpp:23: undefined reference to loop()

collect2.exe*: error: ld returned 1 exit status`

Kabron287 commented 5 years ago

I found the reason: names conflict does not resolving by Visual Micro. Renaming MAX30100.ino into anything else solves the problem.