Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Question about Blitz (bug?)
Question about Blitz (bug?) [message #22013] |
Sun, 14 June 2009 21:50 |
|
My existing projects often do not build using Blitz.
When Blitz is turned of there is no problem.
The problem lies in (re-)defining macros in different files.
suppose: foo.cpp has:
#define FOOBAR foo
and bar.cpp has:
#define FOOBAR bar
normally these definitions stay within the scope of the file, but with blitz on, they seem to clash?
I this normal behaviour for blitz? and should I just disable the use of blitz for these files? or is it a bug ?
Greetings,
Jan
Jan (skyhawk)
|
|
|
|
|
Re: Question about Blitz (bug?) [message #22078 is a reply to message #22023] |
Tue, 16 June 2009 21:08 |
|
To report on our private discussion about this;
The behaviour is a feature, .cpp files that redefine macros that are elsewhere defined in header (.h) files are undefined by blitz.
This behaviour is (apparently) required to make blitz work; to compile sources that have this problem, there are basically two options:
- move the defines into header files and include them in the .cpp
- disable blitz for the effected files
Greetings,
Jan
Jan (skyhawk)
|
|
|
Goto Forum:
Current Time: Wed Jun 05 22:35:05 CEST 2024
Total time taken to generate the page: 0.02026 seconds
|