From: Neil Jerram <neil@ossau.uklinux.net>
To: "carlo.bramix" <carlo.bramix@libero.it>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: Again on Windows support (2)
Date: Fri, 19 Jun 2009 18:58:10 +0100 [thread overview]
Message-ID: <873a9wcdhp.fsf@arudy.ossau.uklinux.net> (raw)
In-Reply-To: <KLH9SN$530BA166F2576E736153FF9B67F7C9BB@libero.it> (carlo bramix's message of "Fri\, 19 Jun 2009 10\:48\:23 +0200")
"carlo.bramix" <carlo.bramix@libero.it> writes:
> Hello,
> this is the command that I gave me some results:
>
> $ ./pre-inst-guile-env ./libtool --mode=execute gdb --args libguile/guile.exe -c '(display "foo")'
>
> As you can see I added "--args" option to GDB.
Thanks, good point.
> Since I had no idea about those unknown '\' characters, I added some debug prints before scm_boot_guile():
>
> int
> main (int argc, char **argv)
> {
> int x;
> printf("argc=%d\n",argc);
> for (x=0; x<argc; x++)
> printf("argv[%d]=%s\n",x,argv[x]);
>
> scm_boot_guile (argc, argv, inner_main, 0);
> return 0; /* never reached */
> }
>
> Then I launched libguile/guile.exe normally and I got this:
>
> argc=4
> argv[0]=C:/msys/1.0/home/Carlo/guile/libguile/.libs/guile.exe
> argv[1]=-c
> argv[2]=(display
> argv[3]=foo)
>
> In this case, no more '/' but the '"' characters around the "foo" word are disappeared.
> Anyways, I seems that the parameter has been split in two...
Excellent, we're getting closer. So either it's a problem in how the
shell passes arguments to an executable, or it's a problem in how the
libguile/guile.exe wrapper passes on arguments to
libguile/.libs/guile.exe.
Can you remind me how you're compiling? Also is guile.exe really an
executable in your build? (On GNU/Linux it's a shell script wrapper.)
Regards,
Neil
next prev parent reply other threads:[~2009-06-19 17:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-19 8:48 Again on Windows support (2) carlo.bramix
2009-06-19 17:58 ` Neil Jerram [this message]
2009-06-19 18:09 ` Neil Jerram
-- strict thread matches above, loose matches on Subject: below --
2009-07-01 18:55 carlo.bramix
2009-06-26 18:45 carlo.bramix
2009-06-23 9:41 carlo.bramix
2009-06-22 10:22 carlo.bramix
2009-06-22 9:18 carlo.bramix
2009-06-19 19:11 carlo.bramix
2009-06-20 10:53 ` Andy Wingo
2009-06-19 14:17 carlo.bramix
2009-06-19 16:17 ` Ludovic Courtès
2009-06-19 18:30 ` Ludovic Courtès
2009-06-19 8:15 carlo.bramix
2009-06-19 17:50 ` Neil Jerram
2009-06-16 18:26 carlo.bramix
2009-06-17 20:41 ` Neil Jerram
2009-06-17 21:09 ` Neil Jerram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873a9wcdhp.fsf@arudy.ossau.uklinux.net \
--to=neil@ossau.uklinux.net \
--cc=carlo.bramix@libero.it \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).