Author Topic: BUILD_DLL define at project level  (Read 3551 times)

XFox

  • Guest
BUILD_DLL define at project level
« 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?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: BUILD_DLL define at project level
« Reply #1 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...
Be patient!
This bug will be fixed soon...