Include C-Modules / C++ Modules

Hello developers,

i would like to know if it is possible to call c / c++ functions from my lua code (if using the corona sdk).

I already startet a few tests and failed. As a reference i used this guide: http://www.wellho.net/mouth/1844_Calling-functions-in-C-from-your-Lua-script-a-first-HowTo.html

But i ended getting the following error:
Copyright © 2009-2010 A n s c a , I n c .
Version: 2.0.0
Build: 2011.268
The file sandbox for this project is located at the following folder:
(/Users/alex/Library/Application Support/Corona Simulator/ComResearch-9EB8BE3EB8563E90864B67C70BA0B28B)
Runtime error
error loading module ‘lib’ from file ‘./lib.so’:
dynamic libraries not enabled; check your Lua installation
stack traceback:
[C]: ?
[C]: ?
[C]: in function ‘require’
…owerdefence/TowerPlayground_App/ComResearch/main.lua:5: in main chunk
Runtime error: error loading module ‘lib’ from file ‘./lib.so’:
dynamic libraries not enabled; check your Lua installation
stack traceback:
[C]: ?
[C]: ?
[C]: in function ‘require’
…owerdefence/TowerPlayground_App/ComResearch/main.lua:5: in main chunk
Any ideas?

Sorry for my bad english :wink:

[import]uid: 7190 topic_id: 8424 reply_id: 308424[/import]

Unfortunately Corona can’t work with outside modules. [import]uid: 12108 topic_id: 8424 reply_id: 30189[/import]