Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: XFox on May 22, 2006, 12:18:42 pm

Title: BUILD_DLL define at project level
Post by: XFox on May 22, 2006, 12:18:42 pm
I noticed that when I create a new Dynamic Link Library project Code::Blocks 1.0 revision 2477 set the BUILD_DLL macro in Project --> Build Options --> Compiler --> #defines at the project level.
With this default if I create a second target, for example a console application to test the library, the defined macro is inherited from the project level.
IMHO this default is wrong because it forces me to manually delete the BUILD_DLL macro definition from the project level and set it at the dynamic link library target level.
I think that:
- when I create a new dyamic link library project, Code::Blocks should define the BUILD_DLL macro at the default target level;
- when I add a new dynamic link library target to an existing project, Code::Blocks should define the BUILD_DLL macro at the new target level.

What's your opinions?
Title: Re: BUILD_DLL define at project level
Post by: mandrav on May 22, 2006, 12:31:19 pm
Quote
What's your opinions?

It's just a sample. In fact, you 're not even required to use BUILD_DLL. You could choose whatever macro you wanted...