hi,
i have a project folder structure like this:
project/app.ino
project/mylib/include/a - adds the A namespace
project/mylib/include/a/a - adds the AA namespace
project/mylib/include/a/b - adds the AB namespace
But when i try to include the AA namespaced functions from within the AB namespaced functions, red squiggles appear in the visual studio environment but it compiles fine?
- edit -
I am using the Nucleo-64 STM32L452RE settings and the namespaces aren't working, however, if i switch to Uno (
https://www.visualmicro.com/forums/YaBB.pl?num=1402500470/6) then the red squiggles go away. But then when i change the project board back to Nucleo-64, the red squiggles appear again.
- edit -
If i switch to the Uno board it no longer compiles but prints this error:
Quote:Y.h: 10:10: fatal error: Y/include/Error_Source.h: No such file or directory
#include "Y/include/Error_Source.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated
An error was encountered during the 'Deep Search' library discovery process.
Debug build failed for project 'X'
- edit -
If i remove the "Deep Search" feature then it compiles and intellisense works when using the Uno board.
But when i change it to Nucleo-64, the red squiggles appear and when Deep Search is disabled, these errors appear (these errors do not appear when deep search is enabled):
Quote:
# Coping cached core 1a14a\core.a to C:\Users\Richa\AppData\Local\Temp\VMBuilds\SAIN\STM32_Nucleo_64\Debug\core.a
-- removed
ld.exe: rtup_stm32yyxx.S.o): in function LoopFillZerobss
(.text.Reset_Handler+0x2a)*: undefined reference to SystemInit
ld.exe: ing_time.c.o): in function millis
wiring_time.c*: (.text.millis+0x0): undefined reference to getCurrentMillis
ld.exe: ing_time.c.o): in function delay
wiring_time.c*: (.text.delay+0x6): undefined reference to getCurrentMillis
ld.exe: wiring_time.c:(.text.delay+0x10): undefined reference to getCurrentMillis
ld.exe: dwareSerial.cpp.o): in function HardwareSerial::_rx_complete_irq(serial_s*)
Error linking for board Nucleo-64
HardwareSerial.cpp*: (.text._ZN14HardwareSerial16_rx_complete_irqEP8serial_s+0x8): undefined reference to uart_getc
ld.exe: dwareSerial.cpp.o): in function HardwareSerial::write(unsigned char)
Debug build failed for project 'SAIN'
HardwareSerial.cpp*: (.text._ZN14HardwareSerial5writeEh+0x24): undefined reference to uart_enable_tx
ld.exe: HardwareSerial.cpp:(.text._ZN14HardwareSerial5writeEh+0x48): undefined reference to serial_tx_active
ld.exe: HardwareSerial.cpp:(.text._ZN14HardwareSerial5writeEh+0x52): undefined reference to uart_attach_tx_callback
ld.exe: dwareSerial.cpp.o): in function HardwareSerial::HardwareSerial(void*, bool)
HardwareSerial.cpp*: (.text._ZN14HardwareSerialC2EPvb+0x50): undefined reference to pinmap_pin
ld.exe: HardwareSerial.cpp:(.text._ZN14HardwareSerialC2EPvb+0x5c): undefined reference to pinmap_pin
ld.exe: dwareSerial.cpp.o): in function HardwareSerial::enableHalfDuplexRx()
HardwareSerial.cpp*: (.text._ZN14HardwareSerial18enableHalfDuplexRxEv+0x26): undefined reference to uart_enable_rx
ld.exe: dwareSerial.cpp.o): in function HardwareSerial::begin(unsigned long, unsigned char)
HardwareSerial.cpp*: (.text._ZN14HardwareSerial5beginEmh+0x60): undefined reference to uart_init
ld.exe: HardwareSerial.cpp:(.text._ZN14HardwareSerial5beginEmh+0x8c): undefined reference to _Error_Handler
ld.exe: HardwareSerial.cpp:(.text._ZN14HardwareSerial5beginEmh+0x74): undefined reference to uart_attach_rx_callback
ld.exe: n.cpp.o): in function premain()
main.cpp*: (.text.startup._Z7premainv+0x4): undefined reference to HAL_NVIC_SetPriorityGrouping
ld.exe: rd.c.o): in function init
board.c*: (.text.init+0x0): undefined reference to hw_config_init
collect2.exe*: error: ld returned 1 exit status