public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] error: template with C linkage
@ 2023-01-07 17:20 Helmut Jarausch
  2023-01-09 15:19 ` [gentoo-user] " Holger Hoffstätte
  0 siblings, 1 reply; 2+ messages in thread
From: Helmut Jarausch @ 2023-01-07 17:20 UTC (permalink / raw
  To: gentoo-user

Hi,
for some of my (older) local ebuild I get the error
template with C linkage

What is the reason for this message?
How can I change "C linkage" to "C++ linkage"

Many thanks for a hint,
Helmut


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

* [gentoo-user] Re: error: template with C linkage
  2023-01-07 17:20 [gentoo-user] error: template with C linkage Helmut Jarausch
@ 2023-01-09 15:19 ` Holger Hoffstätte
  0 siblings, 0 replies; 2+ messages in thread
From: Holger Hoffstätte @ 2023-01-09 15:19 UTC (permalink / raw
  To: gentoo-user, Helmut Jarausch

On 2023-01-07 18:20, Helmut Jarausch wrote:
> Hi,
> for some of my (older) local ebuild I get the error
> template with C linkage
> 
> What is the reason for this message?
> How can I change "C linkage" to "C++ linkage"

Your C++ code opens an 'extern "C" { ..' block (maybe via included header)
but apparently does not close it correctly. Defining a C++ template in a
C-linkage scope makes no sense, hence the complaint.
To fix you need to find the 'extern "C"' section and make sure it is closed.

cheers
Holger


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

end of thread, other threads:[~2023-01-09 15:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-07 17:20 [gentoo-user] error: template with C linkage Helmut Jarausch
2023-01-09 15:19 ` [gentoo-user] " Holger Hoffstätte

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