错误如下:
Description Resource Path Location Type
#10010 errors encountered during linking; "GPIO.out" not built GPIO C/C++ Problem
<a href="http://processors.wiki.ti.com/index.php/Compiler/diagnostic_messages/10234">#10234-D</a> unresolved symbols remain GPIO C/C++ Problem
gmake: *** [GPIO.out] Error 1 GPIO C/C++ Problem
gmake: Target 'all' not remade because of errors. GPIO C/C++ Problem
unresolved symbol ROM_GPIOPinTypeGPIOOutput, first referenced in ./drivers/GPIO.obj GPIO C/C++ Problem
unresolved symbol ROM_GPIOPinWrite, first referenced in ./main.obj GPIO C/C++ Problem
unresolved symbol ROM_SysCtlClockFreqSet, first referenced in ./main.obj GPIO C/C++ Problem
unresolved symbol ROM_SysCtlPeripheralEnable, first referenced in ./drivers/GPIO.obj GPIO C/C++ Problem
我已经添加了路径,为什么还是编译不了,一直有问题
Seven Han:
报错内容是未定义,是否工程中缺少源文件。
user4827983:
回复 Seven Han:
我知道了,谢谢,但是要怎么引用源文件呢?求指教
user4827983:
回复 Seven Han:
不行,添加了源文件还是有同样的错误,到底是怎么回事
xyz549040622:
回复 user4827983:
工程的整体建立有问题,你是自己新建的工程,还是在官方基础上修改的呢?这点很重要
MIKE_Zhang:
回复 user4827983:
打开一个例程,右键工程>Properties唤出属性弹窗,展开Build>ARM Compiler>Advanced Options>Predfined Symbols,看看里面有几项,再用同样方法看看你的工程里有没有少