John Labenski <[EMAIL PROTECTED]> wrote:
<[EMAIL PROTECTED]>To compile the tird party lib, yes vc7 complains unresolve symbol if I do not suppliy the lua50.lib in the input field.
> not depend on lua50.dll . But it is not right, it still requires lua50.dll
> which might be incompatible with wxLua. My question is why and is there any
> problem with it apart from I have to bring lua50.dll while I have already
> lua interpreter in my app.
I don't know? Does the linker tell you about unresolved symbols and
their names? Can you just link directly to luasocket if you compile it
[EMAIL PROTECTED]>
I think all strange things of my apps in win32 is from that reason. Inconsistency in lua state because of the binary third party lib. Just like round problem, you need lua50.lib to compile the lib and at runtime it requiers lua50.dll and your own has another lua state.
I just remove all third party libs, integrate it into the project as a cpp source file and use lua C API ..., remove luasql etc..
And everything works stable as expected. I do not need to link stc lib any more in win98 to avoice memory allocation error ; win2k is stable again .
<[EMAIL PROTECTED]>[EMAIL PROTECTED]>The draw back is that some big libs, it is not easy to integrate by source into the system. And some, licence issue as well... But it is just my imagination, at the moment I have no problem with it
BY the way, I noticed the latest version of wxLua, the lua_PushLString() signature changes (from wxString ); what reason? I found using wxString is easier as we are doing in in wxWidget then...
Cheers,
<[EMAIL PROTECTED]>[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>as a lib as well?
> Adding the lua addon files to my project and directly link to my app is one
> solution but luasocket is rather complex pack.
>
> What I would like to do is to compile third party addon lib but not depend
> on lua50.dll when I have wxLua ; how can I do this?
I don't think you can use the dll with a project like wxLua that has
already linked with the exact same .lib, but I could be wrong. Perhaps
since the luasocket is trying to open the lua dll it will resolve the
names of the functions it needs soley from within the dll, if so it
should work? In any case trying to mix and match lua versions will
never work. The 2.6.2 wxLua uses a fairly vanilla 5.0.2, the changes
made for wxLua should not affect the normal operation of the
lua_State.
IIRC you wanted to stay with 5.0, but if you use wxLua from CVS or a
snapshot you can use wxLua as a dll as well, but it's lua 5.1.
Good luck,
John Labenski
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users
[EMAIL PROTECTED]>
S.KIEU
Do you Yahoo!?
Yahoo! Music: Check out the gig guide for live music in your area
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wxlua-users mailing list Wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users