HELP VS8 Command line for IDE?

PROBLEM:

C: \> cl / LD hellomodule.c / Ic: \ Python24 \ include c: \ Python24 \ libs \ python24.lib / link / out: hello.dll

'cl' is not recognized as an internal or external command, operating program, or batch file.

I am using Visual Studio Prof Edi 2008.

  • What PATH should I configure for this command?
  • How to execute the command above using the IDE?

NOTE. I am studying this .


C:\>cl /LD hellomodule.c /Ic:\Python24\include c:\Python24\libs\python24.lib /li nk/out:hello.dll 'cl' is not recognized as an internal or external command, operable program or batch file. C:\>PATH="C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe" C:\>cl 'cl' is not recognized as an internal or external command, operable program or batch file. C:\>PATH="C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe" C:\>cl /LD hellomodule.c /Ic:\Python24\include c:\Python24\libs\python24.lib /li nk/out:hello.dll 'cl' is not recognized as an internal or external command, operable program or batch file. C:\> 

+4
source share
3 answers

You can customize your environment with

C: \ Program Files \ Microsoft Visual Studio 9.0 \ VC \ vcvarsall.bat

+9
source

Can you be more specific in your question? What exactly doesn’t work? Can he not find the program, compile the compilation, etc.?

The only problem I see is that the command line cannot resolve the CL command. Try including the full path to the cl.exe binary. This is the appropriate path on my machine.

 C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe 

EDIT

When using a path environment variable, you must set it to the path, not to the application. Change your path code to

 set PATH=%PATH%;C:\Program Files\Microsoft Visual Studio 9.0\VC\bin 

Regarding the inability to load mspdb80.dll, I am worried that clutter with your environment variables may contribute to this problem. Reboot the cmd.exe shell and add the above line and try again. If you still receive an error message with mspdb80.dll, you may need to repair the installation of Visual Studio.

EDIT2

It definitely looks like the PATH environment variable is causing a mess in the boot path for mspdb80.dll. This thread has many solutions to this problem.

http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/2a3c57c5-de79-43e6-9769-35043f732d68/

+1
source

I have a "Visual Studio 2008 Command Prompt" in the "My Programs" menu. Are you using this or the command line?

+1
source

All Articles