I have a Code::Blocks project that includes a perl script which creates a c++ source file containing a linked list; the linked list is built by parsing special comments that may be included in all of the project's other .cpp files. The script is desinged to automate the creation of the linked list without human intervention, even if a new .cpp file is added to the project. I need this script to run every time the project is built, but I can't find anywhere in Code::Blocks where a "Build Always" option may be set. Does anyone know how to do this?

Thank you for your help.

4 Years
Discussion Span
Last Post by doug.leany

What you're probably looking for this the pre/post build steps tab under your project's Build Options... menu, which will allow you to set certain scripts to be executed whenever you build your project. Go to Project > Build Options... and then go to the tab that says Pre/Post build steps.


That did it. I was looking under Project | Properties instead of under Build Options.

Thank you!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.