Code::Blocks Forums
User forums => Help => Topic started by: photon3108 on June 09, 2009, 04:52:36 am
-
(1). There are two projects, A and B. Each file are saved and each project are builded.
And then I set that B depends on A. If B is active and I change some files in A,
Code::Blocks only rebuild B but not both of them.
(2). Actually when I set B depends on A, I cannot choose build target, for example,
B's GCC_Release_O2 depends on A'GCC_Release_O2 and
B's GCC_Release_O3 depends on A'GCC_Release_O3.
How can I solve these two problems? Thanks.
-
Do the build targets in both projects really have the same names (no leading and trailing whitespaces, case-sensisitive) ?
If yes, it would be nice if you can provide a simple test case for download.
-
Thanks for your help.
NO, they don't have the same name.
In fact one build target is gcc_shared_release and another is gcc_bin_release.
Should I rename they to the same one? I don't know. Because shared library
and executable binary file are different. If I did it, it will confuse me with the same name.
-
If the target names differ, it will not work.
As workaround, you can create virtual targets, which are named the same in both projects, and make the appropriate real targets members of them.
For example gcc_shared_release and gcc_bin_release can be member of a virtual target called gcc_release, that exists in both projects.
If you now compile gcc_release, the dependencies should work.