Lars writes:
Angus Leeming <[EMAIL PROTECTED]> writes:

>> and put the corrected version in some directory XYZ in the LyX tree.
>> Then all we Mac users would have to do is to add "-isystem XYZ" to the
>> configure step.
>> Or do we already have a directory for this purpose?
>
| src/cheaders ?


I am not fond of using these any more, we should try to get rid of
them instead.

IMHO the only viable in-lyx solution is to disable concept-checking
for darwin.

What's wrong with my idea?

As I understand it (please correct me), #include "..." doesn't find any system headers
and #include <...> searches first any directories provided by -isystem, then the std
system headers, then any directories given by -I. We would need to replace a std
header file with a corrected version.


I think it would be quite easy to provide a corrected version of bits/boost_concept_check.h
for darwin (I compared this file with the one in the boost distribution and it looks that
someone added underscores to the names of template arguments. Sometimes they
also provided longer names, but sometimes they created the problematic names _R and _D.
Since the ctype macros look older, I prefer changing the concept_check file).


If we had a hierarchy cheaders/$ARCH/... , we could heal each OS
specific deficiency without affecting other OSs (Until the GCC folks adopts this correction
in _their_ header fixes. The ultimate goal would be to get cheaders/ empty).


We could then add an -isystem option to CPPFLAGS if the subdirectory for the current architecture exists in cheaders/ I don't know how to change the configure file accordingly,
but it shouldn't be more complicated than deactivating concept_checks for Mac, is it?


/Andreas



Reply via email to