comp.lang.ada
 help / color / mirror / Atom feed
From: alby.gamper@gmail.com
Subject: Re: Undefined reference to __fentry__ on Windows 7.
Date: Sat, 20 Oct 2018 18:44:42 -0700 (PDT)
Date: 2018-10-20T18:44:42-07:00	[thread overview]
Message-ID: <40d90de0-4fb2-458d-b3c5-13f36e59f00c@googlegroups.com> (raw)
In-Reply-To: <lya7n9lr8y.fsf@pushface.org>

On Saturday, October 20, 2018 at 5:34:55 AM UTC+11, Simon Wright wrote:
> Petter Fryklund <petter.fryklund@atero.se> writes:
> 
> > I'm trying to make system call or spawn using GNAT.OS_lib. Both
> > results in undefined reference to __fentry__. What am I missing?
> 
> Googling __fentry__ finds
> https://unix.stackexchange.com/questions/259591/linux-kernel-missing-fentry-symbol,
> don't know if that's any use

Hi Peter

I am using msys2/mingw64 FSF 8.1 on windows 10 and the below sample works fine
(ie I get the "cmd /?" output in my debug window, note I am using my
Visual studio ada addin, called "Visual Ada") Note However that the Success
output parameter comes back as false! Not sure why. But it does seem to work.

Alex

--------------------------------------------------------------------------------
with GNAT.os_lib;
--------------------------------------------------------------------------------
procedure ConsoleApp1 is
    Args    : GNAT.os_lib.argument_list(1..1) := ( others => new string(1..2) );
    Success : Boolean;
begin
    Args(1).all := "/?";
    GNAT.os_lib.spawn("cmd", Args, Success);
end;

  reply	other threads:[~2018-10-21  1:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-19  6:57 Undefined reference to __fentry__ on Windows 7 Petter Fryklund
2018-10-19 17:53 ` Shark8
2018-10-19 18:34 ` Simon Wright
2018-10-21  1:44   ` alby.gamper [this message]
2018-10-21  7:50     ` Dmitry A. Kazakov
2018-10-22  9:58       ` Petter Fryklund
replies disabled

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