Another C++ question

Having written a c++ source file in, for example, Codewarrior, How do I turn this into an executable file (for Windows)?

For the record, I don’t know Codewarrior very well, and I don’t have the documentation for it. There is a button titled “make”, but all this seems to do is compile the code again. Well, doubtless it does something, but I have no idea what. Does “make” have anything to do with making an executable?

In general, you will need to compile the source code (into a .OBJ file) then link it (to produce a .EXE) with its dependencies. This is how it works with Visual C++, anyway.

I’ve never used Codewarrior, but according to their web site it seems to be an integrated development environment (IDE).

So once you’ve created your source, there must be an option to compile and link it?

I know almost nothing about c++, or any cs stuff, except (sort of) how to write code. Sure, when I have Codewarrior open I can compile and link by clicking the “compile” and “run” buttons, respectively. But, I don’t have any idea how to do this outside Codewarrior. In other words, how can I make the finished file work independently from Codewarrior. Is it possible?

I’m with you so far, but how can I do that?

Once you’ve successfully compiled and linked it to create the final .exe it should run as a standalone application outside of the development software.