Re: [LIP] Qt help

komal <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <000701c4122c$dc653de0$2a27013d@komal>
Thank you for your reply. In fact after your reply I saved the main file
with main.cpp and worked without any error. I needed to save file with cpp
extension rather than c .

Komal
----- Original Message -----
From: <[email protected]>
To: <linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Tuesday, March 23, 2004 1:37 AM
Subject: Re: [LIP] Qt help


> Hi
>
> >                  from hello.c:1:
> > /usr/include/stdio.h:480: error: syntax error before "FILE"
> > /usr/include/stdio.h:480: error: storage class specified for parameter
> > `putc'
> > /usr/include/stdio.h:486: error: storage class specified for parameter
> > `putchar'
> > /usr/include/stdio.h:500: error: syntax error before "FILE"
> > /usr/include/stdio.h:500: error: storage class specified for parameter
> > `fputc_unlocked'
> > /usr/include/stdio.h:508: error: syntax error before "FILE"
> > /usr/include/stdio.h:508: error: storage class specified for parameter
> > declared here
>
>
> The error is written clearly as you used C stuff in C++ which is not a
good
> partice. So please avoid use of null treminated char & use of stdio.h
> stdlib.h &  etc.
>
> Try to use Qt classes insteed as for example QChar class will be a very
good
> replacement for your null terminated char.
>
> Also if possible mail me the source code.
>
> & About the previous version  my guess is MDK 9.2 g++ compiler allows you
to
> compile C++ mixed with C stuff , but I am not sure.
>
>
>
Anirban Biswas.
>
>
> --
> "Never make any mistaeks."
> (Anonymous, in a mail discussion about to a kernel bug report.)
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> linux-india-programmers mailing list
> linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/linux-india-programmers



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.