Ciprian Tomoiaga wrote: > I recompiled with the specified opition, but it still crashes. :( > > Do I have any other options? Well I tried myself and it prints two lines, but then crashes when the shared library is unloaded (as a consequence of lua_close()). Looks like OpenMP doesn't like to be unloaded -- this never happens with programs that are statically linked against it. Add 'os.exit(0)' at the end of the Lua script to avoid the unload. --Mike