On Sat, 1 Dec 2007 12:14:57 +0000 (GMT)
"Abhaya Patra." <[EMAIL PROTECTED]> wrote:
> Hi ,
>
> Can someone please send me one demo project on C++ in Unix
> environment. That will be very useful for me.
> Waiting for your kind cooperation.
>
> Thanks,
> Abhaya.
I think what you're after is something that seems like a project file
in visual stupid perhaps?
The projects are generally just information about how to compile. The
same can be held in a Makefile, which is for instructing a compiler
really, you could do most of what Make does in bash, in theory.
If you want to compile a hello world, then you might want to create a
Makefile like this:
--[ begin Makefile ]--
all:
gcc hello.c goodbye.c cruel.c world.c -o hello_world
--[ end ]--
in your .c files you just put what you'd normally have anyway. If you
wanted you could use the install program to copy the compiled binary to
somewhere like /usr/local/bin perhaps.
If you wish to go a step further and use a configure script then you
should go read the documentation there, but that will output a
Makefiles, it's generally up to you how you wish to do this. DJB
prefers to put everything in his Makefiles rather than have configure
handle that.
--
The Raid Array to the Netapp is wigging because of Shagy downloading
MP3's. Microsoft is port scanning the entire /16.
:: http://www.s5h.net/ :: http://www.s5h.net/gpg.html
[Non-text portions of this message have been removed]