Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Adding Default linker Options for MingW compiler
Adding Default linker Options for MingW compiler [message #1746963] Tue, 08 November 2016 06:45 Go to next message
Sushant Patil is currently offline Sushant PatilFriend
Messages: 3
Registered: November 2016
Junior Member
I created a C++ Project in eclipse and I am using MingW toolchain. This requires me to add "-static-libgcc -static-libstdc++" in linker options to build the project.

Now, if someone else want to reuse the same project, that person will use "File->new->Makefile Project with existing code" option.

However, the linker settings which I did in original project are not reflected in the newly created Project.

How can I achieve this? Is there any option to set these values by default?

I want to avoid this repeatative job of adding the linker Options each time.

Thanks in advance for you suggestions!
Re: Adding Default linker Options for MingW compiler [message #1747050 is a reply to message #1746963] Tue, 08 November 2016 21:34 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
If you literally mean the same project, keep the .cproject and .project files.
You can then later import it as an existing project.

File --> Import --> General --> Existing Projects into Workspace
Push Next
Set (or browse for) the root directory (the one with the .project and .cproject) in the dialog box
You should then see the project appear in the Projects area of the dialog box
Select it if necessary.
Push Finish


[Updated on: Tue, 08 November 2016 21:41]

Report message to a moderator

Re: Adding Default linker Options for MingW compiler [message #1747057 is a reply to message #1747050] Wed, 09 November 2016 06:21 Go to previous messageGo to next message
Sushant Patil is currently offline Sushant PatilFriend
Messages: 3
Registered: November 2016
Junior Member
Thank you very much! it worked!

Is there any way. I can add this option in default project settings whenever I create a new Project?

[Updated on: Wed, 09 November 2016 06:22]

Report message to a moderator

Re: Adding Default linker Options for MingW compiler [message #1747089 is a reply to message #1747057] Wed, 09 November 2016 10:10 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Not that I'm aware of. What I do is copy an older project and rename it.
Re: Adding Default linker Options for MingW compiler [message #1747111 is a reply to message #1747089] Wed, 09 November 2016 14:27 Go to previous message
Sushant Patil is currently offline Sushant PatilFriend
Messages: 3
Registered: November 2016
Junior Member
Thanks again David! Appreciate your help!!
Previous Topic: random data & access
Next Topic:Difficulty using Lua with C++
Goto Forum:
  


Current Time: Tue Apr 16 22:18:55 GMT 2024

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

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

Back to the top