NMEA2000 icon indicating copy to clipboard operation
NMEA2000 copied to clipboard

NMEA2000ToWiFiAsSeaSmart

Open AAKFISHERMANN opened this issue 4 years ago • 4 comments

Hi, I´m trying to compile NMEA2000ToWiFiAsSeaSmart code on Atom PlatformIO. Board is ESP32 DEVKITv1. Buit each time i compile it, i have errors:

  • undefined reference to `vtable for tN2kDataToNMEA0183'

  • undefined reference to `tN2kDataToNMEA0183::Update()'

These errors occurs in any version os ESPRESSIF32 (1.7.0, 1.8.0 and the last 1.12.4) Other codes using NMEA2000 library, works fine; But i have a issue with this one: N2kDataToNMEA0183.h

Thanks for any help regards

AAKFISHERMANN avatar Jun 23 '20 20:06 AAKFISHERMANN

You are missong file N2kDataToNMEA0183.cpp from your project.

ttlappalainen avatar Jun 24 '20 11:06 ttlappalainen

Thanks. I changed declaration in PlatformIO from #include "N2kDataToNMEA0183.h" to #include "N2kDataToNMEA0183.cpp" and now it compiles. Thanks for your attention. regards

AAKFISHERMANN avatar Jun 24 '20 20:06 AAKFISHERMANN

It is not right way to include .cpp.

ttlappalainen avatar Jun 25 '20 03:06 ttlappalainen

Hi, You are right. I did that only to test. Now, i put files in correct directory (src) and are working well. Thanks.

AAKFISHERMANN avatar Jun 26 '20 13:06 AAKFISHERMANN