Am Samstag, 27. Januar 2007 13:35 schrieb Peter Kümmel: > When building lyx a found this problem: > lyx uses a dummy impl for lyxfont.h: > "src/tex2lyx/lyxfont.h" which should be > used by "src/lyxlayout.C". > > src/lyxlayout.C includes "lyxfont.h", which > is "src/lyxfont.h" and not "src/tex2lyx/lyxfont.h".
This dummy stuff is really a mess. > As I understand it #include "XXXX" always searches > first at the place of the current file and afterwards > in the include pathes, so it cannot correctly include > "src/tex2lyx/lyxfont.h". > Only when #include <XXXXX> is used it first searches the > include pathes. > I wounder how it is done by scons and gcc. autotools do this with symlinks, and src/tex2lyx comes before src in the include search path: $ ls -l build-tree/src/tex2lyx/ insgesamt 23296 2956 2007-01-18 21:56 boost.o 18744 2007-01-18 21:56 context.o 23 2007-01-01 18:37 counters.C -> ../../../src/counters.C 47592 2007-01-18 21:56 counters.o 23 2007-01-01 18:37 Floating.C -> ../../../src/Floating.C 4488 2007-01-01 18:37 Floating.o 24 2007-01-01 18:37 FloatList.C -> ../../../src/FloatList.C 46904 2007-01-01 18:37 FloatList.o 1828 2007-01-18 21:56 gettext.o 3140 2007-01-18 21:56 lengthcommon.o 3864 2007-01-18 21:56 lyxfont.o 24 2007-01-01 18:37 lyxlayout.C -> ../../../src/lyxlayout.C 24 2007-01-01 18:37 lyxlayout.h -> ../../../src/lyxlayout.h 34444 2007-01-18 21:56 lyxlayout.o 21 2007-01-01 18:37 lyxlex.C -> ../../../src/lyxlex.C 67432 2007-01-18 21:56 lyxlex.o 27 2007-01-01 18:37 lyxlex_pimpl.C -> ../../../src/lyxlex_pimpl.C 445300 2007-01-18 21:56 lyxlex_pimpl.o 27 2007-01-01 18:37 lyxtextclass.C -> ../../../src/lyxtextclass.C 27 2007-01-01 18:37 lyxtextclass.h -> ../../../src/lyxtextclass.h 197904 2007-01-18 21:56 lyxtextclass.o 24015 2007-01-24 20:33 Makefile 39192 2007-01-18 21:56 math.o 20061178 2007-01-01 18:37 pch.h.gch 38472 2007-01-01 18:37 pch.h.gch.dep 171720 2007-01-18 21:56 preamble.o 234704 2007-01-18 21:56 table.o 1659439 2007-01-18 21:56 tex2lyx 33242 2006-02-10 19:53 tex2lyx.1 214844 2007-01-18 21:56 tex2lyx.o 56000 2007-01-01 18:37 texparser.o 340592 2007-01-18 21:56 text.o > In short: Could I apply attached patch It does not look OK: <> is for system stuff, "" for our own. It should be possible to do the same as autotools do in cmake (just replacw the symlinks by copies and add a rule to update these copies when the original files change). Georg