comp.lang.ada
 help / color / mirror / Atom feed
From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: How to call a Windows executable from Ada?
Date: Thu, 09 Dec 2021 13:38:23 -0500	[thread overview]
Message-ID: <0jg4rgpa9nelmv7k930ao6s4pfosjkdp07@4ax.com> (raw)
In-Reply-To: c476b633-3a86-4526-95e6-f29ddfc6d7f1n@googlegroups.com

On Thu, 9 Dec 2021 01:28:59 -0800 (PST), Marius Amado-Alves
<amado.alves@gmail.com> declaimed the following:

>Thanks all.
>
>Yeah, it's probably the quotation marks. I found no way around it with GNAT.OS_Lib. The quotes are needed because the names have spaces.
>

	Have you tried /building/ those strings using character literals? Or
doubled quotes...

wulfraed@debian:~/Scratch$ cat stringtest.adb 
with Text_IO; use Text_IO;

procedure stringtest is
begin
   Put_Line("String with spaces");
   Put_Line('"' & "String with spaces, delimited" & '"');
   Put_Line("""String with doubled quotes""");
end stringtest;
wulfraed@debian:~/Scratch$ gnatmake stringtest.adb 
x86_64-linux-gnu-gcc-8 -c stringtest.adb
x86_64-linux-gnu-gnatbind-8 -x stringtest.ali
x86_64-linux-gnu-gnatlink-8 stringtest.ali
wulfraed@debian:~/Scratch$ ./stringtest 
String with spaces
"String with spaces, delimited"
"String with doubled quotes"
wulfraed@debian:~/Scratch$ 


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/

  reply	other threads:[~2021-12-09 18:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-08 23:04 How to call a Windows executable from Ada? Marius Amado-Alves
2021-12-09  5:09 ` Randy Brukardt
2021-12-09  7:26 ` Vadim Godunko
2021-12-09  7:29 ` Dmitry A. Kazakov
2021-12-09  9:28   ` Marius Amado-Alves
2021-12-09 18:38     ` Dennis Lee Bieber [this message]
2021-12-09 19:27     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox