Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: blacksages on February 15, 2019, 12:13:35 pm

Title: save linker settings libraries
Post by: blacksages on February 15, 2019, 12:13:35 pm
Isn't it possible to add a feature so that in the linker settings, where I list the linked libraries, I could reuse a list of linked libraries I've already made?

I'm coding in c++, I don't know if the interface change for others projects.

But whenever I have to start a new project that needs the same libraries of another project (even just for quick testing) I need to relist every damn libraries and be CAREFUL of the order. This is very bothersome, and makes my codeblocks UX quite disatisfying.
Title: Re: save linker settings libraries
Post by: Miguel Gimenez on February 15, 2019, 12:52:18 pm
Certainly it is a hassle, specially with non-monolithic build of wxWidgets (in MSW) or extensive use of MSW API.

The easiest way would be adding a popup menu (or two buttons under the list box) named "Copy selected to clipboard" and "Paste".

I can try adding this, but only after devs pronounce favorably.
Title: Re: save linker settings libraries
Post by: gd_on on February 15, 2019, 04:36:36 pm
I haven't tried this, but there is an option to create a user template/model from a usable project. May be it's a good way to search ...
Title: Re: save linker settings libraries
Post by: BlueHazzard on February 15, 2019, 05:08:05 pm
There is a plugin that is called libfinder. I think it adds the libraries automatically as needed to the project.
I have never used it and honestly i do not know what it does... Maybe you can look at it, and report back ;)
it is shipped with codeblocks, but as i said, no idea how it works... http://wiki.codeblocks.org/index.php/Library_Finder
Title: Re: save linker settings libraries
Post by: oBFusCATed on February 15, 2019, 06:34:19 pm
Also there is the project options manipulator plugin.

Also it is possible to write a script which adds the libs you want to have added. It would be 5-10-20 lines of code...