Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » 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: 89
Registered: November 2011
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:Bug in Codan "No break at end of case" with CDT 8.1?
Next Topic:Eclipse suppresses parallelization with OMP?
Goto Forum:
  


Current Time: Sun May 19 21:05:11 EDT 2013

Powered by FUDForum. Page generated in 0.01413 seconds