Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HELP VS8 Command line to 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, operable program or batch file.

I am using Visual Studio Prof Edi 2008.

  1. What PATH should I set for this command to work?
  2. How to execute above command 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:\>

like image 990
Pratik Deoghare Avatar asked Dec 22 '22 12:12

Pratik Deoghare


2 Answers

You can set up the environment by using

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

like image 118
cmeerw Avatar answered Dec 31 '22 22:12

cmeerw


I have a "Visual Studio 2008 Command Prompt" in my Programs menu. Are you using that or the command prompt?

like image 42
brian chandley Avatar answered Dec 31 '22 21:12

brian chandley