The error message from gcc is given below
 gcc -o poem -c poem.c
poem.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’
token
poem.c:4:183: warning: unknown escape sequence '\,'
poem.c:4:183: warning: unknown escape sequence '\+'
poem.c:4:183: warning: unknown escape sequence '\l'
poem.c:4:183: warning: unknown escape sequence: '\040'
poem.c:4:183: warning: unknown escape sequence '\;'
poem.c:4:183: warning: unknown escape sequence '\#'
poem.c:4:725: warning: unknown escape sequence '\i'


Os - Fedora -8
 gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)



On Thu, Jun 18, 2009 at 5:40 PM, Syam Krishnan <[email protected]> wrote:

>
> On 06/18/2009 02:18 PM, vibi sreenivasan wrote:
> > i m gettin
> > error: expected constructor, destructor, or type conversion before ‘<’
> token
> >
> Do not try to compile it using a C++ compiler. Use a C compiler (i.e.
> use gcc instead of g++). main() can be called recursively only in C and
> not in C++.
>
>
> regs,
>
> Syam
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

For details visit the website: www.ilug-tvm.org or the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to