Article View: comp.os.linux.development.apps
Article #108Re: Compiling???
From: John Burton
Date: Fri, 02 Apr 1999 00:00
Date: Fri, 02 Apr 1999 00:00
36 lines
1737 bytes
1737 bytes
Ivan Van den Bossche wrote:
>
> Hello everybody !!!
>
> I have written a simple program which displays 'hello, world' on the screen:
>
> The source file calles 'test.cpp'
>
> #include <iostream.h>
>
> int main()
>
> {
>
> cout << "Hello, world !";
>
> return 0;
>
> }
>
> I have some questions: How can I compile the test.cpp file, so I get an
> executable file ???
Something like :
gcc -o test test.cpp -lstdc++
Is a good place to start for a small program. You'd want to compile and
link
seperatly for a bigger program, and remember that "test" is a really bad
name
for a program. I do it all the time and forget that typing "test" rund
the
built in command not my program. SO best call it something else.
Technical Details
Message-ID:
<3704C96C.761E3489@jbmail.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7e05k5$7rq$1@news.planetinternet.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,95af74d28b45ec59 X-Google-Attributes: gidf5392,public X-Google-Thread: 10c696,95af74d28b45ec59 X-Google-Attributes: gid10c696,public X-Google-Thread: 10c329,95af74d28b45ec59 X-Google-Attributes: gid10c329,public X-Google-Thread: f60be,95af74d28b45ec59 X-Google-Attributes: gidf60be,public From: John Burton <john@jbmail.com> Subject: Re: Compiling??? Date: 1999/04/02 Message-ID: <3704C96C.761E3489@jbmail.com> X-Deja-AN: 461939957 Content-Transfer-Encoding: 7bit References: <7e05k5$7rq$1@news.planetinternet.be> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@theplanet.net X-Trace: news5.svr.pol.co.uk 923060641 5578 62.136.95.169 (2 Apr 1999 13:44:01 GMT) Organization: Me at home Mime-Version: 1.0 NNTP-Posting-Date: 2 Apr 1999 13:44:01 GMT Newsgroups: comp.os.linux.development.apps,comp.os.linux.development.system,fido.belg.linux,it.comp.linux.development