comp.lang.ada
 help / color / mirror / Atom feed
From: Roger <rogermcm2@gmail.com>
Subject: Re: Interface Ada string with C++ std::string
Date: Tue, 3 Jul 2018 21:13:58 -0700 (PDT)
Date: 2018-07-03T21:13:58-07:00	[thread overview]
Message-ID: <78c71918-5d7b-4f65-a306-3b8e9065c4da@googlegroups.com> (raw)
In-Reply-To: <3199b658-cc7d-47be-bc4d-a8346c0d765a@googlegroups.com>

On Wednesday, July 4, 2018 at 1:33:59 PM UTC+10, Roger wrote:
> On Wednesday, July 4, 2018 at 2:56:15 AM UTC+10, Lucretia wrote:
> > On Tuesday, 3 July 2018 13:59:56 UTC+1, Roger  wrote:
> > > I am need to interface an Ada procedure to a C++ function that takes a  std::string as an input parameter.
> > > Can someone advise me how to do this?
> > 
> > See https://github.com/Lucretia/test_binding
> 
> Thanks for this, it looks promising.
> I have cloned test_binding, built and run it and am now using it as a basis for my own situation.

Having said that; it is true for one of my Macs but not the other.
On the other linking fails with numerous errors which I have been unable to fix:
Undefined symbols for architecture x86_64:
  "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from:
      std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::endl<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) in libtest_binding.a(b_base.o)
      std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in libtest_binding.a(b_base.o)
      std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::endl<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) in libtest_binding.a(b_derived1.o)

etc.


  reply	other threads:[~2018-07-04  4:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-03 12:59 Interface Ada string with C++ std::string Roger
2018-07-03 13:13 ` Dan'l Miller
2018-07-03 13:16   ` Roger
2018-07-03 16:34     ` Jacob Sparre Andersen
2018-07-03 16:52       ` Roger
2018-07-03 16:56 ` Lucretia
2018-07-04  3:33   ` Roger
2018-07-04  4:13     ` Roger [this message]
2018-07-04 11:23     ` Lucretia
2018-07-04 11:45       ` Roger
2018-07-04 11:52         ` Lucretia
2018-07-05  1:08           ` Roger
2018-07-05 23:32 ` Roger
replies disabled

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