Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » .exe don´t work in other pc
.exe don´t work in other pc [message #975251] Wed, 07 November 2012 13:34 Go to next message
Elena Perez is currently offline Elena Perez
Messages: 1
Registered: November 2012
Junior Member
Hi.

I´ve created with eclipse juno (64) with MinGW (32) a .exe
but this executable does not work in other pc without MinGW (.dll).

How can eclipse create a .exe that does not need .dll???
Thank you.
Re: .exe don´t work in other pc [message #978860 is a reply to message #975251] Sat, 10 November 2012 06:44 Go to previous message
Klaus Mr is currently offline Klaus Mr
Messages: 107
Registered: November 2011
Senior Member
Hello,

you could use this linker options to build a statically linked version (but this will increase the size of the executable!):

-static-libgcc -static-libstdc++

Add them under Project -> Properties -> C/C++Build -> Settings -> Linker -> Miscellaneous

But you also should study the GCC manuals:

http://gcc.gnu.org/onlinedocs/gcc/

http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options

regards,
Klaus
Previous Topic:Eclipse suppresses parallelization with OMP?
Next Topic:Remote Debugging using Juno
Goto Forum:
  


Current Time: Mon Jul 28 02:25:50 EDT 2014

Powered by FUDForum. Page generated in 0.03460 seconds