This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include"driverlib/gpio.h"
#include"driverlib/sysctl.h"
void Delay(unsigned long ulVal)
{
while(ulVal--)
{
}
}//延时程序
//主程序
int main(void)
{
SysCtlClockSet(SYSCTL_SYSDIV_1|SYSCTL_USE_OSC|SYSCTL_OSC_MAIN|SYSCTL_XTAL_16MHZ);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE,GPIO_PIN_6);
GPIOPinWrite(GPIO_PORTB_BASE,GPIO_PIN_6,0);
while(1)
{
GPIOPinWrite(GPIO_PORTB_BASE, GPIO_PIN_6, GPIO_PIN_0);
Delay(2000000);
GPIOPinWrite(GPIO_PORTB_BASE, GPIO_PIN_6, 0);
Delay(2000000);
}
}
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "ceshi7.out" not
unresolved symbols remain
例程是我照着打的试了几个都是
unresolved symbols remain
请教高手
undefined first referenced
symbol in file
--------- ----------------
GPIOPinTypeGPIOOutput ./main.obj
GPIOPinWrite ./main.obj
SysCtlClockSet ./main.obj
SysCtlPeripheralEnable ./main.obj
您好,我找到这些文件已经在.h文件中声明。相应的.c文件中这些函数也已经定义。相应的头文件我也已经加入~对这些有些疑惑?
是不是相应的.c 源文件需要做些处理呢?我没有动过这些源文件,只是单纯的#include了那些头文件