🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #714

How do I turn a .cc file into a .c file

#714
From: Michael J. Corrigan
Date: Thu, 28 Jan 1993 02:30
10 lines
715 bytes
When I used
g++ -c -save-temps  or
gcc -c -save-temps  or
gcc -c -E  

on a .cc file, the .i file still looks like C++ ( classes, extern "C" stuff ).
Is this really C code ? If not, can I get preprocessed C from a .cc file
using g++/gcc  ( or anything else )
Thanks for any information.
-mike
Technical Details
Message-ID: <1k7gghINN4ss@network.ucsd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!howland.reston.ans.net!usc!news.service.uci.edu!network.ucsd.edu!corrigan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!howland.reston.ans.net!usc!news.service.uci.edu!network.ucsd.edu!corrigan
From: corrigan@weber.ucsd.edu (Michael J. Corrigan)
Newsgroups: gnu.g++.help
Subject: How do I turn a .cc file into a .c file
Date: 28 Jan 1993 02:30:41 GMT
Organization: University of California, San Diego
Lines: 10
Message-ID: <1k7gghINN4ss@network.ucsd.edu>
NNTP-Posting-Host: weber.ucsd.edu