public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC 12.1 and C++23 <stacktrace>
@ 2022-07-28 18:32 Helmut Zeisel
  2022-07-28 19:42 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Helmut Zeisel @ 2022-07-28 18:32 UTC (permalink / raw)
  To: gcc-help

I tried to use C++23 <stacktrace> with GCC 12.1.
I configured GCC 12.1 with

 --enable-libstdcxx-backtrace=yes

built, and installed.
I built my test program with

-std=c++23 -lstd++_libacktrace

(cf. https://stackoverflow.com/questions/72341483/how-can-i-generate-a-c23-stacktrace-with-gcc-12-1 )

but get the error message

/usr/bin/ld: cannot find -lstd++_libacktrace: No such file or directory

Do I need other or additional options? Where can I check whether libstd++_libacktrace was really built?

Thank you,

Helmut


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GCC 12.1 and C++23 <stacktrace>
  2022-07-28 18:32 GCC 12.1 and C++23 <stacktrace> Helmut Zeisel
@ 2022-07-28 19:42 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2022-07-28 19:42 UTC (permalink / raw)
  To: Helmut Zeisel; +Cc: gcc-help

On Thu, 28 Jul 2022 at 19:33, Helmut Zeisel via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> I tried to use C++23 <stacktrace> with GCC 12.1.
> I configured GCC 12.1 with
>
>  --enable-libstdcxx-backtrace=yes
>
> built, and installed.
> I built my test program with
>
> -std=c++23 -lstd++_libacktrace
>
> (cf. https://stackoverflow.com/questions/72341483/how-can-i-generate-a-c23-stacktrace-with-gcc-12-1 )
>
> but get the error message
>
> /usr/bin/ld: cannot find -lstd++_libacktrace: No such file or directory

You spelled it wrong. It's stdc++ not std++


>
> Do I need other or additional options? Where can I check whether libstd++_libacktrace was really built?
>
> Thank you,
>
> Helmut
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-28 19:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 18:32 GCC 12.1 and C++23 <stacktrace> Helmut Zeisel
2022-07-28 19:42 ` Jonathan Wakely

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).