On 5/29/06, k. holwerda <[EMAIL PROTECTED]> 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 of
-- every generated cpp file or "" for none
hook_cpp_binding_includes = "#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
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users