From: John L. <jla...@gm...> - 2006-05-30 00:20:54
|
On 5/29/06, k. holwerda <kla...@nl...> wrote: > Hi John, > > I have this in my rules.lua file: > > -------------------------------------------------------------------------= ------ > -- Set any #includes or other C++ code to be placed verbatim at the top o= f > -- every generated cpp file or "" for none > hook_cpp_binding_includes =3D "#include \"general/include/a2dprec.h\"\n" > > As it says it should be "at the top". > And in my luabind.i I have this at the top: > > %include "general/include/a2dprec.h" Have only one of these. You can also try "hook_cpp_binding_header_includes" in the rules file. > This gives me problems to compile it, the #include > "general/include/a2dprec.h" for precompiled headers must be at the top. > And of course it also important that the order of include files stays > the same as defined in the luabind.i. > > It was oke some time ago, can you change this to be like before? Maybe, I think the problem has to do with writing the bindings out sorted. This really has to be done since lua tables using string keys come out arbitrarily and so CVS diffs are useless and in some cases it seems as though everything gets shifted around even for some tiny little change. There is also the problem that XWindows very rudely #defines "Above" and "Below" which we need to #undef *after* all the includes. Let me know if "hook_cpp_binding_header_includes" works for you, it'll put the #include in the .h binding file right at the top. Do a new checkout, I've adjusted things a little. Regards, John Labenski |