www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/09/15:30:31

From: Jason <jpsaave AT sandia DOT gov>
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp
Subject: Re: Newbie Question regarding include
Date: Wed, 09 Sep 1998 13:14:52 -0600
Organization: Sandia National Labs
Lines: 24
Message-ID: <35F6D3AC.108F9326@sandia.gov>
References: <01bddab6$7b68a300$LocalHost AT jonadab> <35F47DAC DOT E8A1878B AT unb DOT ca>
NNTP-Posting-Host: tags2pc.csu890.sandia.gov
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> > Anyway, here's my command line:
> > E:\A\DJGPP\BIN\Gcc.exe -v -x c++ D:\C\HELLOW.C -o D:\C\HELLOW.exe -lstdc
>         The problem is not with any of your syntax, it is that you are using
> "Hellow.c" as a filename and not "Hellow.cc" or "Hellow.cpp".  GCC thinks that
> your file is strickly a "C" source file and therefore would not be able to use
> "iostream.h".  Also, you should change "-lstdc" to "-lstdcxx" since you are
> using C++ and not C.

Isn't *.C considered a C++ file and *.c considered a C file?  Or is this
just in UNIX?

--JASON--

-- 
 -----------------------------------------
|  -------------------------------------  |
| | Jason Saavedra - Student and Psycho | |
| | Sandia National Laboratories        | |
| | Albuquerque, NM                     | |
| | ----------------------------------- | |
| | Any insanities expressed are mine.  | |
| | (you may borrow, but please return) | |
|  -------------------------------------  |
 -----------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019