自己在keil中搭建GD32工程後,編譯會提示找不到“RTE_Components.h“這個檔案。這個檔案需要使用keil自動生成工程的方式才會有。
如果自己手動搭建工程時,GD32的庫檔案中是沒有提示這個檔案的。
那GD32的例程為什麼不會報錯呢?看一下例程就會發現。其它GD32提示的例程裡面是沒有包含這個檔案的。所以我們建工程時也不需要。
那怎麼才能不錯呢?
檢視程式碼就可以發現“RTE_Components.h“這個檔案是在"gd32f10x_libopt.h"這個檔案中包含的。如果這個檔案不包含“RTE_Components.h“
就不會報錯。"gd32f10x_libopt.h"有兩種來源,一種是keil MDK安裝目錄下提供,預設是這種方式。另一種是自己在工程目錄下提示這個檔案,
而這個檔案中不要包含這個“RTE_Components.h“就可以了,並且GD32官方例程也是這麼做的。
解決辦法就是,從GD32官方例程中將"gd32f10x_libopt.h"複製到自己的工程目錄下。然後再匯入相應的目錄就可以了。
解決GD32新建工程時提示:cannot open source input file “RTE_Components.h“
相關文章
- “no source“: Error: #5: cannot open source input file “C:\Users\xxx\AppData\Local\Temp\p4228: PermiErrorAPP
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- 解決ImportError: libmysqlclient_r.so.16: cannot open shared object fileImportErrorIBMMySqlclientObject
- No input file specified 解決方法
- 獨顯接顯示器報錯提示:Mouse0: cannot open input devicedev
- 解決“su: cannot open session: Permission denied”Session
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- CentOS7提示 libsasl2.so.2: cannot open shared object fileCentOSObject
- 解決The jar file has no source attachment問題JAR
- no input file specified 三種解決方法
- gunzip時,提示file too large(問題已解決)
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- libcap.so.1:cannot open shared object file: No such file or directoryObject
- libXext.so.6: cannot open shared object file: No such file or directoryObject
- libz.so.1: cannot open shared object file: No such file or directoryObject
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- Cannot find SS.INI file for user *** 解決方法
- linux操作提示:“Can't open file for writing”或“operation not permitted”的解決辦法LinuxMIT
- 網站開啟提示:”No input file specifed.“網站
- (轉)RAC srvctl 命令報 libpthread.so.0 cannot open shared object file解決辦法threadObject
- 記錄 libldap-2.4.so.2: cannot open shared object file: No such file or directoryLDAObject
- 問題1.libXp.so.6: cannot open shared object file: No such file or directoryObject
- No input file specified 出現的原因及解決方法
- 解決org.hibernate.exception.GenericJDBCException: Cannot open connectionExceptionJDBC
- libiconv.so.2: cannot open shared object file: No such filObject
- EBS R12應用通過opatch打補丁提示: Cannot open the file: /etc/oraInst.locAI
- pbootcms製作網站開啟提示:No input file specifedboot網站
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- shared libraries: libpthread.so.0: cannot open shared object file: No such file or directorythreadObject
- 影片匯聚平臺EasyCVR啟動出現報錯“cannot open shared object file”的原因排查與解決VRObject
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- eclipse新建android工程提示android.support.v7錯誤的解決辦法EclipseAndroid
- python libclntsh.so.12.1: cannot open shared object filePythonObject
- (問題解決)Cannot set LC_CTYPE to default locale: No such file or directory
- iostat -n來統計NFS讀寫資訊時碰到了Cannot open /proc/self/mountstats: No such file or directoryiOSNFS
- ORA-31640: unable to open dump file 問題解決
- Input-Source-Pro:自動切換輸入法並提示狀態
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directoryAIErrorObject