From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60191 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: require("module.so") on cygwin Date: Thu, 15 Jul 2010 10:49:56 +0200 Message-ID: <20100715084956.GA13629@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279183824 23162 80.91.229.12 (15 Jul 2010 08:50:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2010 08:50:24 +0000 (UTC) To: ConTeXt list Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 15 10:50:21 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OZK95-00089M-Uy for gctc-ntg-context-518@m.gmane.org; Thu, 15 Jul 2010 10:50:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 452BAC9CC1; Thu, 15 Jul 2010 10:50:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OW2mA6dullWz; Thu, 15 Jul 2010 10:50:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB879C9CB8; Thu, 15 Jul 2010 10:50:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CC4BCC9C53 for ; Thu, 15 Jul 2010 10:50:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mMmE4NpZWN8L for ; Thu, 15 Jul 2010 10:49:57 +0200 (CEST) Original-Received: from smtp19.orange.fr (smtp19.orange.fr [80.12.242.17]) by balder.ntg.nl (Postfix) with ESMTP id 9D447C9CB8 for ; Thu, 15 Jul 2010 10:49:57 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1906.orange.fr (SMTP Server) with ESMTP id 32E5D20001F8 for ; Thu, 15 Jul 2010 10:49:57 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1906.orange.fr (SMTP Server) with ESMTP id 1853B200037A for ; Thu, 15 Jul 2010 10:49:57 +0200 (CEST) Original-Received: from gaston.couberia.bzh (ARennes-551-1-14-74.w92-129.abo.wanadoo.fr [92.129.125.74]) by mwinf1906.orange.fr (SMTP Server) with ESMTP id DA54120001F8 for ; Thu, 15 Jul 2010 10:49:56 +0200 (CEST) X-ME-UUID: 20100715084956894.DA54120001F8@mwinf1906.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id 51C28305F2; Thu, 15 Jul 2010 10:49:56 +0200 (CEST) Mail-Followup-To: ConTeXt list Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:60191 Archived-At: Hello, How can I load a lua-lib in cygwin? Example: file test.tex: \startluacode package.cpath = "?.so" require("testmod") \stopluacode \starttext bla \stoptext file testmod.c: #include "lua.h" #include "lauxlib.h" static int l_test(lua_State *L) { int n = luaL_checknumber(L, 1) * 100; lua_pushnumber(L, n); return 1; } static const struct luaL_Reg mylib[] = {{"test100", l_test}, {NULL, NULL}}; int luaopen_testmod(lua_State *L) { luaL_register(L, "testmod", mylib); return 1; } file testmod.so generated under cygwin with: gcc -shared -o testmod.so testmod.c /usr/lib/liblua.dll.a The problem: "context test" hanges after "language en is active". TIA for any help! Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________