I need tips on editing Make file
Hi,
I need to seperate my code into different .c and .h files
when I do this, the Keil IDE compile no problem. But the compiler from withing TouchGFX designer gives an error of undefined reference.
I know this issue is solvable my editing the Make file in target/gcc folder. But I have no idea how to edit it exactly,
help is appreciated
Converting images
Linking build/bin/target.elf
build/ST/STM32F746G-DISCO/gui/src/model/Model.o: In function `Model::transmit(unsigned char, unsigned char*, unsigned short)':
C:\TouchGFXProjects\AksApp/gui/src/model/Model.cpp:39: undefined reference to `esit::transmit(unsigned char, unsigned char*, unsigned short)'
build/ST/STM32F746G-DISCO/gui/src/model/Model.o: In function `Model::receive(unsigned char, unsigned short)':
C:\TouchGFXProjects\AksApp/gui/src/model/Model.cpp:48: undefined reference to `esit::receive(unsigned char, unsigned short)'
build/ST/STM32F746G-DISCO/gui/src/model/Model.o: In function `Model::receive_it(unsigned char)':
C:\TouchGFXProjects\AksApp/gui/src/model/Model.cpp:57: undefined reference to `receive_it'
build/ST/STM32F746G-DISCO/target/bsp/source/BoardConfiguration.o: In function `touchgfx::hw_init()':
C:\TouchGFXProjects\AksApp/target/bsp/source/BoardConfiguration.cpp:96: undefined reference to `esit::ESIT_USART1_Init()'
C:\TouchGFXProjects\AksApp/target/bsp/source/BoardConfiguration.cpp:97: undefined reference to `esit::ESIT_USART6_Init()'
C:\TouchGFXProjects\AksApp/target/bsp/source/BoardConfiguration.cpp:98: undefined reference to `esit::ESIT_USART7_Init()'
collect2.exe: error: ld returned 1 exit status
target/gcc/Makefile:289: recipe for target 'build/bin/target.elf' failed
make[2]: *** [build/bin/target.elf] Error 1
target/gcc/Makefile:285: recipe for target 'generate_assets' failed
make[1]: *** [generate_assets] Error 2
target/gcc/../gcc/Makefile:44: recipe for target 'all' failed
make: *** [all] Error 2