Re: [Development] check, Mate!

2012-01-10 Thread Stephen Kelly
On Monday, January 09, 2012 19:37:47 Gábor Lehel wrote: > ...and apologies for the email spam but yet another complication is > that if the header defining the macro is included later than the one > which does the poisoning, that'll also result in an error. Probably > that's also solvable by #ifdef

Re: [Development] check, Mate!

2012-01-09 Thread Gábor Lehel
2012/1/9 Gábor Lehel : > 2012/1/9 Stephen Kelly : >> On Monday, January 09, 2012 18:00:29 Gábor Lehel wrote: >> >>> 2012/1/9 Gábor Lehel : >> >>> > Perhaps we could use GCC's poison pragma[1] to make sure that no one >> >>> > uses them? In some cases it would just be replacing one error message >>

Re: [Development] check, Mate!

2012-01-09 Thread Gábor Lehel
2012/1/9 Stephen Kelly : > On Monday, January 09, 2012 18:00:29 Gábor Lehel wrote: > >> 2012/1/9 Gábor Lehel : > >> > Perhaps we could use GCC's poison pragma[1] to make sure that no one > >> > uses them? In some cases it would just be replacing one error message > >> > with another (though perhaps

Re: [Development] check, Mate!

2012-01-09 Thread Stephen Kelly
On Monday, January 09, 2012 18:00:29 Gábor Lehel wrote: > 2012/1/9 Gábor Lehel : > > Perhaps we could use GCC's poison pragma[1] to make sure that no one > > uses them? In some cases it would just be replacing one error message > > with another (though perhaps a more user-friendly one), but in othe

Re: [Development] check, Mate!

2012-01-09 Thread Gábor Lehel
2012/1/9 Gábor Lehel : > Perhaps we could use GCC's poison pragma[1] to make sure that no one > uses them? In some cases it would just be replacing one error message > with another (though perhaps a more user-friendly one), but in other > cases it would substitute an error for no error. Of course,

Re: [Development] check, Mate!

2012-01-09 Thread Gábor Lehel
Perhaps we could use GCC's poison pragma[1] to make sure that no one uses them? In some cases it would just be replacing one error message with another (though perhaps a more user-friendly one), but in other cases it would substitute an error for no error. Of course, it only works with GCC. (TBF I

Re: [Development] check, Mate!

2012-01-09 Thread Thiago Macieira
On Monday, 9 de January de 2012 14.46.54, =?ISO-8859-1?Q?Gábor?= Lehel wrote: > Yet more: > - major > - minor > > These are defined to gnu_dev_major and gnu_dev_minor, I'm not quite > sure by what (GCC? glibc?). /usr/include/sys/sysmacros.h:# define major(dev) gnu_dev_major (dev) $ grep include.*

Re: [Development] check, Mate!

2012-01-09 Thread Gábor Lehel
2012/1/9 Charley Bay : >> Stephen Kelly spaketh: >> >> > http://boost.2283326.n4.nabble.com/Boost-with-Darwin-Mac-gcc-4-0-1- >> > td2580330.html >> > >> > So, keep in mind - for portability treat 'check' as an out of bounds >> > name >> > for a method or variable. > > > Thiago Macieira respondeth:

Re: [Development] check, Mate!

2012-01-09 Thread Charley Bay
> > Stephen Kelly spaketh: > > http://boost.2283326.n4.nabble.com/Boost-with-Darwin-Mac-gcc-4-0-1- > > td2580330.html > > > > So, keep in mind - for portability treat 'check' as an out of bounds name > > for a method or variable. > Thiago Macieira respondeth: > Also to avoid: >sun >

Re: [Development] check, Mate!

2012-01-09 Thread Thiago Macieira
On Monday, 9 de January de 2012 13.43.52, Stephen Kelly wrote: > On Monday, January 09, 2012 10:36:11 Thiago Macieira wrote: > > And a hint: whenever you get an error from the compiler that doesn't make > > sense at all, check the preprocessed output. > > And if you don't have enough access to do t

Re: [Development] check, Mate!

2012-01-09 Thread Stephen Kelly
On Monday, January 09, 2012 10:36:11 Thiago Macieira wrote: > And a hint: whenever you get an error from the compiler that doesn't make > sense at all, check the preprocessed output. And if you don't have enough access to do that, start googling for whatever is on the problem lines together with

Re: [Development] check, Mate!

2012-01-09 Thread Thiago Macieira
On Monday, 9 de January de 2012 13.25.47, Stephen Kelly wrote: > http://boost.2283326.n4.nabble.com/Boost-with-Darwin-Mac-gcc-4-0-1- > td2580330.html > > So, keep in mind - for portability treat 'check' as an out of bounds name > for a method or variable. Also to avoid: sun m_volum

[Development] check, Mate!

2012-01-09 Thread Stephen Kelly
Hi, I've just solved a problem with a method called check() on Mac OSX. It was quite a head scratcher, so I thought I'd throw some light on it so others are aware. Mac OSX defines an assert header called check() so I was getting error like: ../../../../include/QtCore/../../src/corelib/kernel/