News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Multiple Include and Library Files Template?

Started by dominover, February 12, 2013, 08:22:09 AM

Previous topic - Next topic

dominover

When using some open source software it has multiple library files and include files due to multiple dependencies.  Do I have to add these in the 'include' and 'Linker' Build Options every time I build a new project or is there a method I can use to have all of these includes and library files incorporated in a simpler step?   I know how to add a global variable but it is limited what I can do with this?  Is there another method?

Maybe there is but I'm not sure what to call it.

Thanks

stahta01

Have you tried "File" -> "Save Project as Template"

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

dominover

Nice one.. Thats exactly what I needed.
I don't suppose you know how to incorporate that into an existing project would you.  Do I have to start a new project and incorporate it that way only?

dominover

Alright... does anyone know how to add a saved template includes and linker directories to
an existing project? 

I can start one from scratch but I'm not able to to as described above?
???

dominover


oBFusCATed

You can use scripting. Investigate the wizard template scripts about hints how to do it.
Also look here for some docs: http://wiki.codeblocks.org/index.php?title=Scripting_commands
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

dominover

Thanks for that.  (Both)
I thought there may have been a built in method of doing this but it's not a problem.  I'll just have to remember to start using an existing template until I work out how  use scripting for this purpose.

;)