• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

how to compile c++ programs using textpad?

sdaccord01

Senior member
Hi, I just downloaded textpad and visual c++ 2003 toolkit, how do I compile a C++ program once I'm finished writing the code?
 
to compile form console

just run the environment variables batch file(think its called vcvars.bat or something) in a console window and use the nmake utility that ships with VS2003

if you dont have a make file, write a simple .mak file for your source file

there might be a way to directly compile the .cpp or .c file, but i dont know how, i always work with make files
 
there might be a way to directly compile the .cpp or .c file, but i dont know how, i always work with make files

Make files generally just hold the commands used to compile the files, how would you not know those commands if you made the make files?
 
Originally posted by: Nothinman
there might be a way to directly compile the .cpp or .c file, but i dont know how, i always work with make files

Make files generally just hold the commands used to compile the files, how would you not know those commands if you made the make files?

AFAIK, Visual Studio can auto-generate the makefiles for you.
 
Originally posted by: Nothinman
Probably true, but why waste time messing with nmake at all then? Why not just hit the compile button?

Command line compilation is very helpful when you have to generate executables from a remote location. Some companies also do automated builds where the source is checked out and the project automatically built. This would be very difficult without command-line compilation available.
 
I realize that, but I can't imagine using a build system like that and not having some idea what the make files actually do.
 
Back
Top