maybe u guys right.
here is something i found on the net
Jaya_Kumari wrote:
> I wanted to know if there is an option with g++ compiler where I can
> compile the C files,and the compiler treats these files as C files
> and not C++ files.
Place '-x c' before any C filenames on the command line (see "g++
--help"). However, unless you're linking too, there is no difference
between 'gcc' and 'g++ -x c'.
http://www.faqchest.com/prgm/gcc-l/gcc-02/gcc-0201/gcc-020103/gcc02011502_02890.html
here is something i found on the net
Jaya_Kumari wrote:
> I wanted to know if there is an option with g++ compiler where I can
> compile the C files,and the compiler treats these files as C files
> and not C++ files.
Place '-x c' before any C filenames on the command line (see "g++
--help"). However, unless you're linking too, there is no difference
between 'gcc' and 'g++ -x c'.
http://www.faqchest.com/prgm/gcc-l/gcc-02/gcc-0201/gcc-020103/gcc02011502_02890.html