How to deal with this error while using MAKE_DLL ? [message #50313] |
Tue, 26 September 2006 08:01 |
Hongkai
Messages: 6 Registered: September 2006
|
Junior Member |
|
|
I was trying to use the function MAKE_DLL to build a .dll file from .c
file , but an error was encountered:
'cl' is not internal or external command, and is not .exe file or .bat
file either.
cl -D_DLL -DMSWIN -DWIN32 -D_MT /nologo /I"C:\RSI\IDL62
\external\include" /c
"C:\RSI\IDL62\external\call_external\C\incr_struct.c"
/Fo"incr_struct_3856_MICROSOF-5C334C.obj"
To solve this problem, I queried the value of the system variable
!MAKE_DLL, the answer was as follows:
!MAKE_DLL.COMPILER_NAME :
'Microsoft Visual C++ 7.0' :
!MAKE_DLL.CC :
'cl %X -D_DLL -DMSWIN -DWIN32 -D_MT /nologo
/I"C:\RSI\IDL62\external\include" /c %C /Fo%O'
!MAKE_DLL.LD :
'link /out:%L /nologo /nodefaultlib /dll %O /def:%E
"C:\RSI\IDL62\bin\bin.x86\idl32.lib" msvcrt.lib kernel32.lib %X'
However, the c comlier installed in my windows xp system is Microsoft
Visual C++ 6.0, and I guess I need to change the value of !MAKE_DLL.CC
and !MAKE_DLL.LD, but how to do this ?
Thanks!
|
|
|