Re: luajit cannot call C function

  • From: marcelo nicolet <marcelo.nicolet@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 18 Nov 2014 18:42:55 -0300

I'm on linux. Will try it

On 11/18/2014 06:32 PM, Florian Weimer wrote:
* marcelo nicolet:

The function create_thread is defined in the main C module. As it could be
seen, the "external" functions (printf and sleep) works ok.
Any functon to be called must be defined in an external library?
You need to make sure that you export symbols from your main program,
e.g. using -Wl,-E for ELF targets.  I'm not sure if all platforms
support this, though.




Other related posts: