comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to deal with this error while using MAKE_DLL ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to deal with this error while using MAKE_DLL ? [message #50305] Tue, 26 September 2006 10:35
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Tue, 26 Sep 2006 08:01:48 -0700, 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!

The Microsoft compilers include in their distribution some scripts that
add the compiler binary directories to your search path and set some other
needed env vars. Look for something along the lines of VCVARS32.BAT in
your compiler binary directory.

But just running the batch file in a shell won't do it since you'll be
calling the compiler from the idlde application. You'll have to add the
items that the BAT file adds in your Windows "Environment Variables". You
could also hack the MAKE_DLL settings to do the same thing, but then those
hacks are applicable only to your machine. I find it better to add the
items to the Windows environment.

Karl
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 Go to previous message
Haje Korth is currently offline  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!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: A new book
Next Topic: Dynamic format.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 21:33:41 PDT 2025

Total time taken to generate the page: 0.05221 seconds