|
|
||
|
On Wed, Jul 13, 2011 at 6:53 PM, Jason WhiteBecause Lua's C API is implemented in .c files, whose names then get
<[email protected]> wrote:
> Also I have a simple program http://pastebin.com/MyK5jiAX taken from a
> tutorial on the web (I realise it has no error checking ...) it doesn't
> compile, I have the LUA 5.1 source (all *c & *.h) plus the program above and
> it produces the following http://pastebin.com/TdjHRbdK when compiled, as far
> as I can tell this should not be happening (it not finding every LUA
> function called) since the LUA library is being compiled and liked with it.
>
> Thanks again ...
exported with C linkage. Your .cpp file doesn't have [[extern "C" {
... }]] around the #include statements, and thus doesn't import with C
linkage.