Hello All,
I wanted to use cmake with mbed 3pi. Through simple googling, I found https://github.com/uwearzt/mbed-cmake. After some setting up, I can build the example and execute it in LPC1768, or my mbed 3pi. The moment I want to build a line following, I changed the source files, added the m3pi folder. I also added a CMakeLists.txt folder in m3pi containing:
file(GLOB LINE_FOLLOWING_SRC_FILES "*.cpp")
add_library(3pi ${LINE_FOLLOWING_SRC_FILES})
In my root CMakeLists, there is an add_subdirectory(m3pi/) added, aswell as target_link_libraries concerning the 3pi library.
But when I build I get the following;
m3pi/lib3pi.a(m3pi.cpp.obj):(.rodata._ZTI4m3pi+0x8): undefined reference to `typeinfo for mbed::Stream'
Any solution would be welcome.
Sincerely,
Joey Andres
Hello All,
I wanted to use cmake with mbed 3pi. Through simple googling, I found https://github.com/uwearzt/mbed-cmake. After some setting up, I can build the example and execute it in LPC1768, or my mbed 3pi. The moment I want to build a line following, I changed the source files, added the m3pi folder. I also added a CMakeLists.txt folder in m3pi containing:
file(GLOB LINE_FOLLOWING_SRC_FILES "*.cpp") add_library(3pi ${LINE_FOLLOWING_SRC_FILES})
In my root CMakeLists, there is an add_subdirectory(m3pi/) added, aswell as target_link_libraries concerning the 3pi library.
But when I build I get the following;
m3pi/lib3pi.a(m3pi.cpp.obj):(.rodata._ZTI4m3pi+0x8): undefined reference to `typeinfo for mbed::Stream'
Any solution would be welcome.
Sincerely, Joey Andres