This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debug and Release libraries

Hi,
I am doing some libraries.
I need to have some as debug(to work on dscope) and others as release.

What I do is on each library project I have two targets - DEBUG, RELEASE. With this I have different options and different pre-processor symbols: _DEBUG, _RELEASE.

This is fine but here is the problem:I want to have the same on my programs. BIG PROBLEM: When I choose another target to compile-link the project files are the same! So I have to use either the debug or the release lib files!

Does anyone knows a way to avoid having two different projects just because some files are different from target to target?

Thanks.

Parents
  • I uVison2 you can set options for each component (file or group) of a project. In the Properties Page of the Options dialog you can exclude a component from a target. You need just to include the two library versions in each project.

    The Options dialog opens with Project - Options for <item>.

Reply
  • I uVison2 you can set options for each component (file or group) of a project. In the Properties Page of the Options dialog you can exclude a component from a target. You need just to include the two library versions in each project.

    The Options dialog opens with Project - Options for <item>.

Children