主题:warning LNK4229: 遇到无效的指令
在使用def文件导出函数时,出现了下面的错误:
warning LNK4229: 遇到无效的指令“/def:SdPreV32.def”;已忽略
我使用def的代码是:
#pragma comment(linker, "/def:SdPreV32.def")
def文件中的内容是:
LIBRARY "SdPreV32"
EXPORTS
GetPrinterDC
GetPageInfo
SetPageInfo
不知道怎样使用def文件?
当我注释掉#pragma comment(linker, "/def:SdPreV32.def")时,winapi调用约定导出来的函数有修饰符,但是使用def文件又出错。
应该怎样使用def文件呢?
warning LNK4229: 遇到无效的指令“/def:SdPreV32.def”;已忽略
我使用def的代码是:
#pragma comment(linker, "/def:SdPreV32.def")
def文件中的内容是:
LIBRARY "SdPreV32"
EXPORTS
GetPrinterDC
GetPageInfo
SetPageInfo
不知道怎样使用def文件?
当我注释掉#pragma comment(linker, "/def:SdPreV32.def")时,winapi调用约定导出来的函数有修饰符,但是使用def文件又出错。
应该怎样使用def文件呢?