Hi,
k. holwerda ha scritto:
Hi,
I am compiling on Linux, and in wxluacan.cpp i did see warnings.
wxLUA_USE_wxDC not defined.
yes, I saw this too, together with a couple others.
But that means that wxluasetup.h must be included there.
The wxluacan.cpp is generated, but i am not aware i did add those
checkes with defines.
IMHO, it should work this way: if one cannot know at code-time which
bindings will be available and which not, then he should enclose all
bindings within #if wxLUA_USE_XXXX #endif pairs and last add the
wxluasetup.h include path.
However this should not be a very common need because usually one knows
what bindings he will compile for his app and which not.
for wxLuaCan sample, I think that you can just suppose that all bindings
will be available (and thus remove those #if #endif checks) since custom
wxluasetup.h are used only for custom wxbind library, while wxLuaCan
sample is always linked against wxLua official binding library.
Anyway, it looks like wxluasetup.h needs to be included in the generated
bindings.
But if i do i get errors that or even worse, telling that:
s_wxluatag_wxDC was not declared in this scope etc.
If i also add #include wxbind/include/wxbind.h
It compiles correctly.
Am i missing something?
This is probably because you should never include wxluasetup.h directly
but, if you really need it, you should rather include
wxbind/include/wxbind.h (and add wxluasetup.h include path to compiler
flags).
John, am I right ?
Francesco
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users