Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
SCons
通过 scons 生成 RT-Thread Studio 工程,编译报 rtconfig_preinc.h 告警
发布于 2025-02-26 15:00:47 浏览:140
订阅该版
我在 github 下载 V5.1.0 的代码,在 gd32f450 的 bsp 中通过命令 `scons --dist-ide` 生成能够在 RT-Thread Studio 下运行的工程。在编译时会爆出大量告警: ``` 14:52:09 **** Build of configuration Debug for project rt-studio-project **** make -j8 all arm-none-eabi-gcc "../rt-thread/src/klibc/kstdio.c" arm-none-eabi-gcc "../rt-thread/src/klibc/kstring.c" arm-none-eabi-gcc "../rt-thread/src/clock.c" arm-none-eabi-gcc "../rt-thread/src/components.c" arm-none-eabi-gcc "../rt-thread/src/idle.c" arm-none-eabi-gcc "../rt-thread/src/ipc.c" arm-none-eabi-gcc "../rt-thread/src/irq.c" arm-none-eabi-gcc "../rt-thread/src/kservice.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition ../rt-thread/src/klibc/kstdio.c:294:9: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" ^ In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition ../rt-thread/src/clock.c: In function 'rt_tick_increase': ../rt-thread/src/clock.c:100:5: warning: implicit declaration of function 'rt_sched_tick_increase' [-Wimplicit-function-declaration] rt_sched_tick_increase(); ^ In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition ../rt-thread/src/ipc.c: In function 'rt_susp_list_dequeue': ../rt-thread/src/ipc.c:118:17: warning: implicit declaration of function 'rt_sched_thread_ready' [-Wimplicit-function-declaration] error = rt_sched_thread_ready(thread); ^ ../rt-thread/src/ipc.c: In function 'rt_susp_list_enqueue': ../rt-thread/src/ipc.c:262:21: warning: implicit declaration of function 'rt_sched_thread_get_curr_prio' [-Wimplicit-function-declaration] if (rt_sched_thread_get_curr_prio(thread) < rt_sched_thread_get_curr_prio(sthread)) ^ ../rt-thread/src/ipc.c: In function '_thread_get_mutex_priority': ../rt-thread/src/ipc.c:849:27: warning: implicit declaration of function 'rt_sched_thread_get_init_prio' [-Wimplicit-function-declaration] rt_uint8_t priority = rt_sched_thread_get_init_prio(thread); ^ ../rt-thread/src/ipc.c: In function '_thread_update_priority': ../rt-thread/src/ipc.c:876:11: warning: implicit declaration of function 'rt_sched_thread_change_priority' [-Wimplicit-function-declaration] ret = rt_sched_thread_change_priority(thread, priority); ^ ../rt-thread/src/ipc.c:878:31: warning: implicit declaration of function 'rt_sched_thread_is_suspended' [-Wimplicit-function-declaration] while ((ret == RT_EOK) && rt_sched_thread_is_suspended(thread)) ^ In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/src/mem.c" arm-none-eabi-gcc "../rt-thread/src/mempool.c" arm-none-eabi-gcc "../rt-thread/src/object.c" arm-none-eabi-gcc "../rt-thread/src/scheduler_comm.c" arm-none-eabi-gcc "../rt-thread/src/scheduler_up.c" arm-none-eabi-gcc "../rt-thread/src/thread.c" arm-none-eabi-gcc "../rt-thread/src/timer.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/libcpu/arm/cortex-m4/context_gcc.S" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition ../rt-thread/src/scheduler_comm.c: In function 'rt_sched_thread_init_ctx': ../rt-thread/src/scheduler_comm.c:30:5: warning: implicit declaration of function 'rt_sched_thread_init_priv' [-Wimplicit-function-declaration] rt_sched_thread_init_priv(thread, tick, priority); ^ ../rt-thread/src/scheduler_comm.c: In function 'rt_sched_thread_ready': ../rt-thread/src/scheduler_comm.c:140:13: warning: implicit declaration of function 'rt_sched_insert_thread' [-Wimplicit-function-declaration] rt_sched_insert_thread(thread); ^ ../rt-thread/src/scheduler_comm.c: In function 'rt_sched_thread_change_priority': ../rt-thread/src/scheduler_comm.c:184:9: warning: implicit declaration of function 'rt_sched_remove_thread' [-Wimplicit-function-declaration] rt_sched_remove_thread(thread); ^ ../rt-thread/src/scheduler_up.c: In function 'rt_system_scheduler_start': ../rt-thread/src/scheduler_up.c:180:5: warning: implicit declaration of function 'rt_sched_remove_thread' [-Wimplicit-function-declaration] rt_sched_remove_thread(to_thread); ^ ../rt-thread/src/scheduler_up.c: In function 'rt_schedule': ../rt-thread/src/scheduler_up.c:249:21: warning: implicit declaration of function 'rt_sched_insert_thread' [-Wimplicit-function-declaration] rt_sched_insert_thread(from_thread); ^ ../rt-thread/src/scheduler_up.c: At top level: ../rt-thread/src/scheduler_up.c:370:6: warning: conflicting types for 'rt_sched_insert_thread' void rt_sched_insert_thread(struct rt_thread *thread) ^ ../rt-thread/src/scheduler_up.c:249:21: note: previous implicit declaration of 'rt_sched_insert_thread' was here rt_sched_insert_thread(from_thread); ^ ../rt-thread/src/scheduler_up.c:422:6: warning: conflicting types for 'rt_sched_remove_thread' void rt_sched_remove_thread(struct rt_thread *thread) ^ ../rt-thread/src/scheduler_up.c:180:5: note: previous implicit declaration of 'rt_sched_remove_thread' was here rt_sched_remove_thread(to_thread); ^ ../rt-thread/src/thread.c: In function '_thread_exit': ../rt-thread/src/thread.c:92:5: warning: implicit declaration of function 'rt_sched_remove_thread' [-Wimplicit-function-declaration] rt_sched_remove_thread(thread); ^ ../rt-thread/src/thread.c:98:5: warning: implicit declaration of function 'rt_sched_thread_close' [-Wimplicit-function-declaration] rt_sched_thread_close(thread); ^ In file included from ../rt-thread/src/thread.c:41:0: ../rt-thread/src/thread.c: In function '_thread_timeout': ../rt-thread/src/thread.c:134:15: warning: implicit declaration of function 'rt_sched_thread_is_suspended' [-Wimplicit-function-declaration] RT_ASSERT(rt_sched_thread_is_suspended(thread)); ^ D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rt-thread\include/rtthread.h:782:7: note: in definition of macro 'RT_ASSERT' if (!(EX)) \ ^ ../rt-thread/src/thread.c:142:5: warning: implicit declaration of function 'rt_sched_insert_thread' [-Wimplicit-function-declaration] rt_sched_insert_thread(thread); ^ ../rt-thread/src/thread.c: In function '_thread_init': ../rt-thread/src/thread.c:193:5: warning: implicit declaration of function 'rt_sched_thread_init_ctx' [-Wimplicit-function-declaration] rt_sched_thread_init_ctx(thread, tick, priority); ^ ../rt-thread/src/thread.c: In function 'rt_thread_startup': ../rt-thread/src/thread.c:404:5: warning: implicit declaration of function 'rt_sched_thread_startup' [-Wimplicit-function-declaration] rt_sched_thread_startup(thread); ^ arm-none-eabi-gcc "../rt-thread/libcpu/arm/cortex-m4/cpuport.c" ../rt-thread/src/thread.c: In function '_thread_detach': ../rt-thread/src/thread.c:452:21: warning: implicit declaration of function 'rt_sched_thread_get_stat' [-Wimplicit-function-declaration] thread_status = rt_sched_thread_get_stat(thread); ^ ../rt-thread/src/thread.c: In function 'rt_thread_yield': ../rt-thread/src/thread.c:583:5: warning: implicit declaration of function 'rt_sched_thread_yield' [-Wimplicit-function-declaration] rt_sched_thread_yield(rt_thread_self()); ^ ../rt-thread/src/thread.c: In function 'rt_thread_control': ../rt-thread/src/thread.c:786:21: warning: implicit declaration of function 'rt_sched_thread_change_priority' [-Wimplicit-function-declaration] error = rt_sched_thread_change_priority(thread, *(rt_uint8_t *)arg); ^ ../rt-thread/src/thread.c:819:20: warning: implicit declaration of function 'rt_sched_thread_bind_cpu' [-Wimplicit-function-declaration] return rt_sched_thread_bind_cpu(thread, cpu); ^ ../rt-thread/src/thread.c: In function 'rt_thread_suspend_to_list': ../rt-thread/src/thread.c:949:5: warning: implicit declaration of function 'rt_sched_thread_timer_stop' [-Wimplicit-function-declaration] rt_sched_thread_timer_stop(thread); ^ ../rt-thread/src/thread.c: In function 'rt_thread_resume': ../rt-thread/src/thread.c:1007:13: warning: implicit declaration of function 'rt_sched_thread_ready' [-Wimplicit-function-declaration] error = rt_sched_thread_ready(thread); ^ arm-none-eabi-gcc "../rt-thread/libcpu/arm/common/div0.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/libcpu/arm/common/showmem.c" arm-none-eabi-gcc "../rt-thread/components/libc/compilers/newlib/syscalls.c" ../rt-thread/src/timer.c: In function 'rt_timer_start': ../rt-thread/src/timer.c:516:9: warning: implicit declaration of function 'rt_sched_thread_timer_start' [-Wimplicit-function-declaration] rt_sched_thread_timer_start(thread); ^ arm-none-eabi-gcc "../rt-thread/components/libc/compilers/common/cctype.c" arm-none-eabi-gcc "../rt-thread/components/libc/compilers/common/cstdlib.c" arm-none-eabi-gcc "../rt-thread/components/libc/compilers/common/cstring.c" arm-none-eabi-gcc "../rt-thread/components/libc/compilers/common/ctime.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/libc/compilers/common/cunistd.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/libc/compilers/common/cwchar.c" arm-none-eabi-gcc "../rt-thread/components/finsh/cmd.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/finsh/msh.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/finsh/msh_file.c" arm-none-eabi-gcc "../rt-thread/components/finsh/msh_parse.c" arm-none-eabi-gcc "../rt-thread/components/finsh/shell.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/drivers/serial/serial.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/drivers/pin/pin.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/completion.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/condvar.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/dataqueue.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/pipe.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/ringblk_buf.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/ringbuffer.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/waitqueue.c" arm-none-eabi-gcc "../rt-thread/components/drivers/ipc/workqueue.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 arm-none-eabi-gcc "../rt-thread/components/drivers/core/device.c" ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/dfs/dfs_v1/src/dfs.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/dfs/dfs_v1/src/dfs_file.c" arm-none-eabi-gcc "../rt-thread/components/dfs/dfs_v1/src/dfs_fs.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/dfs/dfs_v1/src/dfs_posix.c" arm-none-eabi-gcc "../rt-thread/components/dfs/dfs_v1/filesystems/elmfat/dfs_elm.c" arm-none-eabi-gcc "../rt-thread/components/dfs/dfs_v1/filesystems/elmfat/ff.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../rt-thread/components/dfs/dfs_v1/filesystems/elmfat/ffunicode.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../libraries/gd32_drivers/drv_gpio.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../libraries/gd32_drivers/drv_usart.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../libraries/GD32F4xx_Firmware_Library/GD32F4xx_standard_peripheral/Source/gd32f4xx_dma.c" arm-none-eabi-gcc "../libraries/GD32F4xx_Firmware_Library/GD32F4xx_standard_peripheral/Source/gd32f4xx_exti.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../libraries/GD32F4xx_Firmware_Library/GD32F4xx_standard_peripheral/Source/gd32f4xx_gpio.c" arm-none-eabi-gcc "../libraries/GD32F4xx_Firmware_Library/GD32F4xx_standard_peripheral/Source/gd32f4xx_misc.c" arm-none-eabi-gcc "../libraries/GD32F4xx_Firmware_Library/GD32F4xx_standard_peripheral/Source/gd32f4xx_rcu.c" arm-none-eabi-gcc "../libraries/GD32F4xx_Firmware_Library/GD32F4xx_standard_peripheral/Source/gd32f4xx_syscfg.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../libraries/GD32F4xx_Firmware_Library/GD32F4xx_standard_peripheral/Source/gd32f4xx_usart.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../libraries/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s" arm-none-eabi-gcc "../libraries/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/system_gd32f4xx.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition arm-none-eabi-gcc "../board/board.c" arm-none-eabi-gcc "../applications/main.c" In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition In file included from
:0:0: D:\Software\RT-ThreadStudio\LMM_discharge\rt-studio-project\rtconfig_preinc.h:8:0: warning: "GD32F450" redefined #define GD32F450 ^
:0:0: note: this is the location of the previous definition linking... arm-none-eabi-objcopy -O binary "rtthread.elf" "rtthread.bin" arm-none-eabi-size --format=berkeley "rtthread.elf" text data bss dec hex filename 116848 2472 4756 124076 1e4ac rtthread.elf Used Size(B) Used Size(KB) Flash: 119320 B 116.52 KB RAM: 7228 B 7.06 KB 14:52:12 Build Finished. 0 errors, 87 warnings. (took 2s.786ms) ``` 求助各位大佬,该问题是如何产生的呢?
查看更多
1
个回答
默认排序
按发布时间排序
KunYi
2025-02-26
这家伙很懒,什么也没写!
查找一下 RT-STUDIO 的設定是否有 -DGD32F450 或是你查找一下你的代碼還有哪裡定義 GD32F450 跟 rtconfig_preinc.h 衝突了
撰写答案
登录
注册新账号
关注者
0
被浏览
140
关于作者
抬头看见柠檬树
这家伙很懒,什么也没写!
提问
4
回答
9
被采纳
0
关注TA
发私信
相关问题
1
scons不支持python3吗?
2
编译又出现问题
3
BSP目录下做好一个项目后,怎么把发给别人的包裁剪的小...
4
为什么重新scons --target=mdk 后,以前在MDK工程里保存的C文
5
Scons 添加Group,SConscript已经执行,源码却没有添加进工程
6
scons如何指定输出目录?
7
新人求助。
8
想用env 工具自己构建编译环境想用vscode 进行一些简单程序
9
关于scons脚本问题
10
使用scons --target=makefile的问题
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
CherryUSB STM32 glue 新增初始化
2
在LPC1114上移植 RT-Thread Nano 3.1.5
3
求助can通讯下怎末运用485
4
STM32F407ZGT适配串口V2驱动
5
【CFP】2025 RT-Thread全球技术大会演讲征集开始啦!
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
rt-smart
FAL
I2C_IIC
cubemx
UART
ESP8266
WIZnet_W5500
BSP
ota在线升级
PWM
flash
packages_软件包
freemodbus
潘多拉开发板_Pandora
ADC
GD32
定时器
flashDB
编译报错
keil_MDK
socket
中断
rt_mq_消息队列_msg_queue
Debug
ulog
SFUD
msh
C++_cpp
at_device
本月问答贡献
聚散无由
9
个答案
6
次被采纳
RTT_逍遥
10
个答案
2
次被采纳
a1012112796
5
个答案
2
次被采纳
三世执戟
4
个答案
2
次被采纳
加缪
2
个答案
2
次被采纳
本月文章贡献
wake_mirco
2
篇文章
7
次点赞
mushroom
1
篇文章
9
次点赞
张世争
1
篇文章
7
次点赞
RTT_逍遥
1
篇文章
6
次点赞
Jack_____
1
篇文章
5
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部