c++ - errors occur when using cl cmd to generate dll file? -
today, used cl cmd vs 2010 attached compile demo gain dll file. written file, content follow:
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
and saved comprun.bat. when used cmd run it, error messages occurred:
d:\program files (x86)\microsoft visual studio 10.0\vc\include\xlocale(323) : warning c4530: c++ exception handler used, unwind semantics 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++ 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 member function returning 'int'.
does face problem? thanks.
Comments
Post a Comment