RE: streambuf.h:403: parse error before `ios'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I believe that "-x c++" will tell the compiler to interpret the source
file as C++ source code.  You can look up the option to see what else it
supports.  I believe that *.c files are interpreted as C source files
while *.cpp, *.cc, *.C, *.cxx and maybe *.c++ are all assumed to be C++
source files.  It is probably bad practice to put C++ code in *.c files.
Also, when linking C++ programs and libraries, you really should use g++
instead of gcc, regardless of how you've named your files.

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
Behalf Of Boyan Biandov
Sent: Sunday, May 02, 2004 10:30 PM
To: 'llewelly@xxxxxxxxxxxx'
Cc: 'gcc-help@xxxxxxxxxxx'
Subject: RE: streambuf.h:403: parse error before `ios'

Excellent, this will explain the behavior. What is the default
assumption
meaning what file extension would each compiler assume and also how
would
one force the compiler to ignore the extension as a language descriptor
and
interpret it as specified by the user (may be a command line parameter
here)

thanks



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux