使用cl cmd生成DLL文件时出错?

时间:2015-07-14 03:03:06

标签: c++ windows visual-studio-2010

今天,我使用附带的vs cm附带的cl cmd编译演示来获取dll文件。我写了一个文件,其内容如下:

CALL "D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
cl /LD getKLineForKdb.cpp getKLineForKdb.def TDB_API_Windows_v2.lib q.lib

并将其保存为comprun.bat。当我使用cmd运行它时,会出现一些错误消息:

d:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4562) : error C2143: syntax error : missing ',' before '->'

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4563) : error C2143: syntax error : missing ',' before '->'

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\mmsystem.h(770) : error C2059: syntax error : 'constant'

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\mmsystem.h(770) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\mmsystem.h(770) : warning C4183: 'waveformat_tag': missing return type; assumed to be a member function returning 'int'.

有没有人遇到这个问题?感谢。

0 个答案:

没有答案