Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8380

Re: Is there any software porting C++ to C?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: Is there any software porting C++ to C?
Date Mon, 01 Aug 2011 21:26:26 +1200
Lines 29
Message-ID <99n9q2Faa6U4@mid.individual.net> (permalink)
References <xxsZp.48094$T85.36355@newsfe19.ams2> <99n3n3Faa6U3@mid.individual.net> <gSsZp.127986$fQ4.108328@newsfe16.ams2>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net x+1p1wwfr868y6Aag50xQgmMRix61BxqU2mmvra/cTtNl5bMz8
Cancel-Lock sha1:ORlxU70YzYK+qJIjE6ORfR9nBQY=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <gSsZp.127986$fQ4.108328@newsfe16.ams2>
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:8380

Show key headers only | View raw


On 08/ 1/11 07:47 PM, crea wrote:
> "Ian Collins"<ian-news@hotmail.com>  wrote in message
> news:99n3n3Faa6U3@mid.individual.net...
>> On 08/ 1/11 07:25 PM, crea wrote:
>>> I need to port C++ code to C code. It includes templates and classes. Is
>>> this possible and is there any programs which would do this
>>> automatically?
>>> Or any other help regarding this. Thank you
>>
>>   Comeau C++ or a lot of pain.
>
> I checked that, but in my understanding it does not produce (necessary)
> c-code:
>
> http://www.comeaucomputing.com/faqs/genfaq.html#ccompiler
> "the generated C code is not standalone. Therefore, it cannot be used by
> itself (note that this is both a technical and legal requirement when using
> Comeau C++), and this is why **there is not normally an option to see the
> generated C code**:"
>
> So it only gives executable program?

It enables you to run C++ code on a target without a native C++ 
compiler, which I assumed was your problem.

If that isn't he case, what is your reason?

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 08:25 +0100
  Re: Is there any software porting C++ to C? Ian Collins <ian-news@hotmail.com> - 2011-08-01 19:42 +1200
    Re: Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 08:47 +0100
      Re: Is there any software porting C++ to C? "Bo Persson" <bop@gmb.dk> - 2011-08-01 11:21 +0200
        Re: Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 10:26 +0100
      Re: Is there any software porting C++ to C? Ian Collins <ian-news@hotmail.com> - 2011-08-01 21:26 +1200
        Re: Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 11:16 +0100
          Re: Is there any software porting C++ to C? Robert Wessel <robertwessel2@yahoo.com> - 2011-08-01 11:59 -0500
            Re: Is there any software porting C++ to C? BGB <cr88192@hotmail.com> - 2011-08-01 14:18 -0700
            Re: Is there any software porting C++ to C? James Kanze <james.kanze@gmail.com> - 2011-08-07 11:39 -0700
  Re: Is there any software porting C++ to C? Juha Nieminen <nospam@thanks.invalid> - 2011-08-01 08:48 +0000
    Re: Is there any software porting C++ to C? "crea" <no@invalid.com> - 2011-08-01 10:29 +0100
    Re: Is there any software porting C++ to C? "Waldek M." <wm@localhost.localdomain> - 2011-08-04 21:54 +0200
  Re: Is there any software porting C++ to C? Marcel Müller <news.5.maazl@spamgourmet.com> - 2011-08-01 11:29 +0200
  Re: Is there any software porting C++ to C? Joshua Maurice <joshuamaurice@gmail.com> - 2011-08-02 14:45 -0700
    Re: Is there any software porting C++ to C? Philipp Klaus Krause <pkk@spth.de> - 2011-08-04 19:30 +0200
      Re: Is there any software porting C++ to C? Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-04 13:53 -0400
        Re: Is there any software porting C++ to C? jt@toerring.de (Jens Thoms Toerring) - 2011-08-04 20:38 +0000
        Re: Is there any software porting C++ to C? Nobody <nobody@nowhere.com> - 2011-08-04 21:54 +0100
      Re: Is there any software porting C++ to C? BGB <cr88192@hotmail.com> - 2011-08-04 15:40 -0700
  Re: Is there any software porting C++ to C? Uwe Dolinsky <uwe@codeplay.com> - 2011-08-03 07:34 -0700

csiph-web