[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: exception handling / linkage problem: tolua, tolua++, and lua 5.1
- From: "Thomas Breuel" <tmbdev@...>
- Date: Fri, 10 Aug 2007 09:46:41 -0700
I'm trying to get tolua++ and lua 5.1 to work together with each other and with exception handling (it's for our open source OCRopus project, www.ocropus.org).
The problem is that when I compile lua
5.1 with exception handling (by compiling it with g++), lua ends up using C++ linkage/name mangling. Tolua++, on the other hand, always uses C linkage, even when compiled with C++.
Tolua 5.1b seems to work the same way.
So, is there some way of getting an unpatched tolua(++) to work with an unpatched lua 5.1 and exception handling? Would it be possible to update tolua and/or lua so that unpatched versions install cleanly in /usr/local and support exception handling?
Thanks,
Thomas.