PDA

View Full Version : windows command line compiling?


-Vormav-
06-08-2005, 09:05 PM
Hey. I've been trying to figure this out for awhile now. Some articles (case in point: http://www.ch3.gr/tutorials/mentalRay/ ) have given instructions that involve compiling programs through a command prompt. I have visual studio .net 2003 (Academic) installed, but every time I try to compile through the command line, it won't recognize the 'cl' command.
Am I just completely missing something here? Do I have to do something more to be able to compile through the command line?

EDIT:...okay...I'm stupid...just completely missed that 'visual studio .net command prompt' tool...:banghead:

Undegen
06-09-2005, 07:32 AM
You should set up environment variables:
add to PATH variable
%path_to_vc2003%\Common7\IDE;%path_to_vc2003%\Vc7\bin

add to INCLUDE variable
%path_to_vc2003%\Vc7\include;%path_to_vc2003%\Vc7\PlatformSDK\Include

add to LIB variable
%path_to_vc2003%\Vc7\lib;%path_to_vc2003%\Vc7\PlatformSDK\lib

where %path_to_vc2003% is for example C:\Program Files\Microsoft Visual Studio .NET 2003

-Vormav-
06-09-2005, 09:59 PM
Hey, nice tip. Wasn't even aware of the environment variables, but that seemed to get everything working just fine through the standard command prompt.

mummey
06-13-2005, 05:12 PM
There's always cygwin too. ;)

arramor
06-14-2005, 08:41 PM
There's always cygwin too.

lol. my friends tried to get me into linux once, but i was so used to windows, i kept on using cygwin. Eventually linux triumphed ... of course.

CGTalk Moderation
06-14-2005, 08:41 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.