platform builder 建立DLL工程编译出错,大家进来帮帮忙!
我用PB5.0建立了一个DLL工程,前提:平台已编译成功!
DLL工程叫BEEP,功能仅实现驱动实验板上的BEEP响,由GPB1驱动,高电平时响声。
未填加BEEP.def 之前编译通过过,当在BEEP.def中加入:
LIBRARY BEEP
EXPORTS
BEP_Close
BEP_Deinit
BEP_Init
BEP_IOControl
BEP_Open
BEP_PowerDown
BEP_PowerUp
BEP_Read
BEP_Seek
BEP_Write
在BEEP.reg文件中加入:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BEEP]
"Prefix"="BEP"
"Dll"="BEEP.dll"
之后再进行编译出现以下错误:
BUILD: [01:0000000028:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_Close
BUILD: [01:0000000029:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_Deinit
BUILD: [01:0000000030:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_IOControl
BUILD: [01:0000000031:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_Init
BUILD: [01:0000000032:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_Open
BUILD: [01:0000000033:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_PowerDown
BUILD: [01:0000000034:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_PowerUp
BUILD: [01:0000000035:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_Read
BUILD: [01:0000000036:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_Seek
BUILD: [01:0000000037:ERRORE] beep.def : error LNK2001: unresolved external symbol BEP_Write
BUILD: [01:0000000038:ERRORE] obj\ARMV4I\retail\beep.lib : fatal error LNK1120: 10 unresolved externals
请问大家这是什么错误呢?我的环境是S3C2440+WINCE5.0