Re: How to deal with this error while using MAKE_DLL ? [message #50308 is a reply to message #50305] |
Tue, 26 September 2006 09:36  |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
The C compiler is not in your search path, that's why cl .exe is not
found. Try using the same command line parameters for VC6. My guess is
they will work.
Hongkai wrote:
> 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!
|
|
|