Solved
Using STM32CubeMX generate code for STM32CubeIDE and than change main.c to main.cpp, and build project will show up undefined reference to 'main' error.
The error message like as:
Core/Startup/startup_stm32f765vitx.o: In function `LoopFillZerobss':
J:/STM32PRJ/CB_ENV/MS220_F765VI/VIDEOBOARD_V9A/20200520/Debug/../Core/Startup/startup_stm32f765vitx.s:97: undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:47: VideoBoard.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
How can I solve this problem?



