English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How protable are my c/c++ applications, I want to just send the client the .EXE file only, no ddl's.

2007-06-13 07:43:24 · 4 answers · asked by mike 1 in Computers & Internet Programming & Design

4 answers

It depends highly on your compiler. Some compilers use dll's for their library functions and the GUI components. There are typically options that you can set on your compiler so that these functions will be explicitly included in your executable - you may have to look up the documentation for your specific computer to find out how to do it.

Another thing - before you send out your exe, make sure that you test it out. Find another convenient computer that does not have your compiler installed. Try running your exe on this computer. If it falls with a message that it cannot find some dll, you will have to dig some more.

2007-06-13 07:57:30 · answer #1 · answered by brunt 4 · 0 0

The question is faulty. C and C++ are highly portable languages, but that applies to the source code, not the binary output. You can provide a single executable in essentially any situation. (The other poster making comment that this is impossible when dependant on DLLs is simply incorrect; DLLs can be statically linked into an application.)

Indeed, the normal build process in most Windows compilers will be exactly what you want.

2007-06-15 16:57:38 · answer #2 · answered by johnhaugeland 2 · 0 0

Even the DLLs if needed can be sent around, but if you don't you can send the .exe just it.

Program by Visual C++ need a common DLL runtime.

2007-06-13 08:04:00 · answer #3 · answered by Andy T 7 · 0 0

you can do that, as long as you don't need any dll's.

2007-06-13 07:47:52 · answer #4 · answered by No Name 4 · 0 0

fedest.com, questions and answers