User forums > Using Code::Blocks

project compile many files (wizard)

(1/2) > >>

japina:
Working on the plugin for my ARM based boards I need plugin to compile many files (well, three for starts).
How to do it in plugin?
I managed to add additional files to the project with:


--- Code: ---    file = project.AddFile(target, libs_path + _T("/startup_stm32f030xc.s"), true, true, 50);
    file.AddBuildTarget(target);
    file.compile = true;
    file.link = true;

    file = project.AddFile(target, libs_path + _T("/system_stm32f0xx.c"), true, true, 50);
    file.AddBuildTarget(target);
    file.compile = true;
    file.link = true;
--- End code ---
 

and the files are added, but when clicking on compile only the user created file gets compiled.
What about others?

stahta01:
Do you know the difference between a CB plugin and CB Wizard?

Because your question makes no sense about a CB plugin; but, it does about a CB Wizard.

Tim S.

japina:
 :( Messed up again ... working on wizard and I constantly say it's plugin. Sorry.

Moving the topic.

stahta01:
Are the files all supposed to be under different or the same build targets?

If the same, then add them to the same target.

If different, the you need to add a Virtual target to the project.

Tim S.

japina:
Used console wizard as a template and solved this problem.

The question is - how to reverse the order of the files being linked?
It looks like this is the culprit for program not to work :/

Navigation

[0] Message Index

[#] Next page

Go to full version