Re: I want to use the g++ template in the "C" gcc software

Liste des GroupesRevenir à cl c  
Sujet : Re: I want to use the g++ template in the "C" gcc software
De : noreply (at) *nospam* bghyujhyh.com (Chan)
Groupes : comp.lang.c
Date : 12. Dec 2024, 23:17:50
Autres entêtes
Organisation : To protect and to server
Message-ID : <vjfnin$1ld6p$1@paganini.bofh.team>
References : 1
User-Agent : Mozilla Thunderbird
On 12/12/2024 08:37, aotto1968 wrote:
Hi,
 
I create a C software and there is a requirement to use the g++ template
*in* the gcc.
I do *not* want to use all the g++ "boilerplate" like special syntax,
classes etc
I just want to use the template.
 
goal:
 
1. I already use "inline" code to replace "cpp-macro-like" syntax in the
header.
2. NOW I *want* to replace a "cpp-macro" which use the *data-type* as an
argument with a template.
 
question.
 
1. Is there a g++ switch to disable all the g++ features except of C
source and template feature ?
2. Is there a gcc switch to add g++-template feature into gcc ?
3. is there an external software to add the c++-template feature into an
existing C software ?
 
thanks.

What is the latest version og GCC/G++ and how to upgrade? On my version
I can't seem to compile Modern C++ snippets. My version is:

g++ (Rev3, Built by MSYS2 project) 14.1.0



Date Sujet#  Auteur
12 Dec 24 * I want to use the g++ template in the "C" gcc software11aotto1968
12 Dec 24 +- Re: I want to use the g++ template in the "C" gcc software1Bonita Montero
12 Dec 24 +* Re: I want to use the g++ template in the "C" gcc software4David Brown
12 Dec 24 i`* Re: I want to use the g++ template in the "C" gcc software3aotto1968
12 Dec 24 i `* Re: I want to use the g++ template in the "C" gcc software2Chris M. Thomasson
12 Dec 24 i  `- Re: I want to use the g++ template in the "C" gcc software1Kaz Kylheku
12 Dec 24 +* Re: I want to use the g++ template in the "C" gcc software3Kaz Kylheku
12 Dec 24 i+- Re: I want to use the g++ template in the "C" gcc software1aotto1968
12 Dec 24 i`- Re: I want to use the g++ template in the "C" gcc software1Chris M. Thomasson
12 Dec 24 `* Re: I want to use the g++ template in the "C" gcc software2Chan
13 Dec 24  `- Re: I want to use the g++ template in the "C" gcc software1Keith Thompson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal