🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50160

(none)

#50160
From: Mike Whalen
Date: Tue, 09 Nov 1993 17:29
33 lines
1778 bytes
To whom it may concern:

I have just installed gcc on my Sparc Sunos4.1.1 machine.  When I installed
it, I installed all of the supported languages.  Now, however, it seems
that my installed header files are in C++ not C, which 
causes gcc to barf when I use it to compile C code.

If I make the simple "hello, world" file

#include <stdio.h>

int main()
{
printf("\nHello, World");
}

and do a "gcc test.c", gcc complains about the header files.  If I do a
"gcc -x c++ test.c", 
the program compiles, links, and runs fine.

I installed all of the languages because I would like to move to C++ but
need to write some code in C.  Did I install gcc wrong, or am I just going
insane?!?!?!?

Sincerely, 
Desperately in need of help

---------------------------------------------------------------------------
Mike Whalen                               Phone:            (313) 668-2567 
Cybernet Systems Corporation       Fax:            (313) 668-8780
1919 Green Rd.   Suite B-101     Email: whalen@cybernet.com
Ann Arbor, Michigan    48105
---------------------------------------------------------------------------
Technical Details
Message-ID: <9311091834.AA12731@gateway.cybernet.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!netmbx.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!gateway.cybernet.com!whalen

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,5818c3af277f8fa1
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-11-09 10:25:37 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!netmbx.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!gateway.cybernet.com!whalen
From: whalen@gateway.cybernet.com (Mike Whalen)
Newsgroups: gnu.gcc.help
Subject: (none)
Date: 9 Nov 1993 12:29:03 -0500
Organization: GNUs Not Usenet
Lines: 35
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9311091834.AA12731@gateway.cybernet.com>