Skip to main content


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 18:34 Go to next message
Elena Perez is currently offline Elena PerezFriend
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 11:44 Go to previous message
Klaus km is currently offline Klaus kmFriend
Messages: 142
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: Fri Apr 26 23:49:13 GMT 2024

Powered by FUDForum. Page generated in 0.03437 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top