Re: Deployment with Visual Studio 2005 C++
On Jun 1, 12:26 am, Michael <mchlg...@aol.com> wrote:
On May 31, 11:03 am, tharris <terrillhar...@yahoo.com> wrote:
I am new learning how to use Visual Studio 2005 to program in C++. I
have been having trouble deploying my applications onto another
computer. I also use the Bloodshed Dev C++ compilier and when I
compile my program it creates a exe that I can simply copy onto
another computer and it will run. However, with Visual Studio I must
create a setup project.
VS will create an EXE for you. No setup project required. Just
create a Console App project, put your files in, and compile.
I don't think it has to be a Console App project. On the other
hand, you will have to ensure that any libraries that are not
bundled with the system are statically linked. This seems to be
a universal problem with C++. On the systems I work on---all
Unix---the C libraries are bundled with the system, and you can
just compile and link with the standard options, and the
resulting executable runs everywhere. The C++ libraries,
however, are NOT bundled (except generally with Linux), and by
default, you will probably end up with them being dynamically
linked. And the program not running on systems where C++ is not
will be in the debug/ or release/ directory (you'll probably want to
run the release build for your actual release).
You probably won't. In practice, you'll probably want to
develop your own list of options, which does something sensible.
The debug options that VS uses aren't really that bad, but the
release options turns off assert's, which means that you
definitly don't want to use them as is in code you deliver.
James Kanze (GABI Software) email:firstname.lastname@example.org
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34