Mail Archives: djgpp/1998/09/09/15:30:31
> > 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 -