From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.user Subject: Re: guile-2.0 on mingw: the sequel Date: Sat, 24 Aug 2013 09:31:24 +0300 Message-ID: <838uzrioqr.fsf@gnu.org> References: <83vc2wj4hz.fsf@gnu.org> <83li3siues.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1377325900 1357 80.91.229.3 (24 Aug 2013 06:31:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Aug 2013 06:31:40 +0000 (UTC) Cc: guile-user@gnu.org To: Panicz Maciej Godek Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Aug 24 08:31:42 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VD7Ns-0004Tq-7A for guile-user@m.gmane.org; Sat, 24 Aug 2013 08:31:40 +0200 Original-Received: from localhost ([::1]:40566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VD7Nr-0000Ir-Qt for guile-user@m.gmane.org; Sat, 24 Aug 2013 02:31:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VD7Ne-0000Ij-O7 for guile-user@gnu.org; Sat, 24 Aug 2013 02:31:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VD7NY-0002dS-TW for guile-user@gnu.org; Sat, 24 Aug 2013 02:31:26 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:48393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VD7NY-0002dK-Ld for guile-user@gnu.org; Sat, 24 Aug 2013 02:31:20 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MS000700V5AK600@a-mtaout23.012.net.il> for guile-user@gnu.org; Sat, 24 Aug 2013 09:31:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MS00079BVG6I170@a-mtaout23.012.net.il>; Sat, 24 Aug 2013 09:31:19 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10679 Archived-At: > Date: Fri, 23 Aug 2013 22:14:43 +0200 > From: Panicz Maciej Godek > Cc: "guile-user@gnu.org" > > > Configuring with --prefix=/usr is a mistake: there's no /usr on your > > system, as far as MinGW programs are concerned. > > [...] > > > > yes, it seems that this was the reason. So now the guile > interpreter runs properly, but I still have a problem with > running a program that, having been linked against > libguile, would call scm_with_guile or scm_init_guile, e.g. > === > #include > void hi(void *unused) { scm_puts("hello!\n", scm_current_output_port()); } > int main() { > scm_with_guile(hi, NULL); > return 0; > } > === Does this work on other platforms? (I know almost nothing about linking C programs with libguile; maybe your program has a bug, or you are missing some function call necessary for this to work?) > I compile it under msys in c:/guile-2.0/bin (i.e. prefix/bin) using > $ gcc -o hello.exe hello.c -I ../include/guile/2.0 -lguile-2.0 There should be no need to compile under MSYS, you can compile from the Windows cmd window. I don't think that's the reason for your problems, but it's worth a try.