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?