thanks for the help man ....

it is working now but is giving this warning 
[faisal@server2 myc++]$ gcc -o hello hello.c > error
hello.c: In function `main':
hello.c:4: warning: return type of `main' is not `int'

do we need to define the libraries here i mean 
#include<studio.h> etc etc ?

also the executable program is not doing what it is
suppose to do like print the message

thanks
Faisal

--- David Relson <[EMAIL PROTECTED]> wrote:
> At 09:14 PM 6/27/02, you wrote:
> >faisal gillani wrote:
> >
> >>hello there i have started using mandrake as one
> of my
> >>normal usage O/S but i still cannot make out how
> to do
> >>development in c++ for example in my windows i
> have
> >>turbo c 3 which i use IDE to develop programs if i
> want to make a program 
> >>as follows how can i make
> >>& complie it ?
> >>
> >>#include<studio.h>
> >>#include<conio.h>
> >>
> >>void main (void)
> >>{
> >>printf ("Hello world");
> >>}
> >>
> >>i have installed gcc in my mandrake thanks for
> reading my mail take care
> >>
> >gcc -o <name of source file> <name of executable>
> >
> >example:
> >gcc -o hello.c hello
> 
> 
> The "-o" switch is for naming the compiler's output
> file.  Hence the proper 
> command is:
> 
>          gcc -o hello hello.c
> 
> for compiling a C program.
> 
> For a C++ program, a typical command would be:
> 
>          gcc -o hello hello.cpp
> 
> where the extension indicates to the compiler
> whether the source program is 
> C or C++.
> 
> 
> > Want to buy your Pack or Services from
MandrakeSoft?
> 
> Go to http://www.mandrakestore.com
> 


=====
*��., ��,.��*���*� Allah-hu-Akber*��., ��,.��*��*�

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to