News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

BUILD_DLL define at project level

Started by XFox, May 22, 2006, 12:18:42 PM

Previous topic - Next topic

XFox

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?

mandrav

QuoteWhat'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...
Be patient!
This bug will be fixed soon...