* RE: g++ in 3.0.2
@ 2001-11-07 5:31 Venkatesh, Vangal
2001-11-07 6:46 ` Venkatesh, Vangal
0 siblings, 1 reply; 6+ messages in thread
From: Venkatesh, Vangal @ 2001-11-07 5:31 UTC (permalink / raw)
To: 'Paolo Carlini'; +Cc: gcc-help
Paolo,
I have figured out the problem. gcc 2.96 will compile this file ok but
not 3.0.2 as main has to return an int.
#include <iostream.h>
void main(){
cout << "Hello World" << endl;
}
Thanks,
Vangal
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: g++ in 3.0.2
2001-11-07 5:31 g++ in 3.0.2 Venkatesh, Vangal
@ 2001-11-07 6:46 ` Venkatesh, Vangal
0 siblings, 0 replies; 6+ messages in thread
From: Venkatesh, Vangal @ 2001-11-07 6:46 UTC (permalink / raw)
To: 'Paolo Carlini'; +Cc: gcc-help
Paolo,
I have figured out the problem. gcc 2.96 will compile this file ok but
not 3.0.2 as main has to return an int.
#include <iostream.h>
void main(){
cout << "Hello World" << endl;
}
Thanks,
Vangal
^ permalink raw reply [flat|nested] 6+ messages in thread
* g++ in 3.0.2
2001-11-06 23:20 Venkatesh, Vangal
@ 2001-11-07 5:58 ` Venkatesh, Vangal
0 siblings, 0 replies; 6+ messages in thread
From: Venkatesh, Vangal @ 2001-11-07 5:58 UTC (permalink / raw)
To: 'gcc-help@gcc.gnu.org'
Hi,
I downloaded and compiled gcc 3.0.2 on a Pentium 4 system running
Redhat 7.1.
When I try to compile a simple Hello World program using g++ I do not get an
object file or executable, although the compilation seems to be ok.
gcc and g77 seem to work ok.
Any ideas on what may be the problem?
Vangal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: g++ in 3.0.2
@ 2001-11-07 5:28 Peter Kurpis
0 siblings, 0 replies; 6+ messages in thread
From: Peter Kurpis @ 2001-11-07 5:28 UTC (permalink / raw)
To: gcc-help
> >When I try to compile a simple Hello World program using g++ I do not get an
> >object file or executable, although the compilation seems to be ok.
>
> Could please post both the output of g++ -v your_hello_test.cc and your_hello_test.cc
> himself?
Could it be you're not noticing the a.out file, which is the default
executable name? (You need to specify -o filename to make your executable
be called filename .)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: g++ in 3.0.2
@ 2001-11-07 0:21 Paolo Carlini
0 siblings, 0 replies; 6+ messages in thread
From: Paolo Carlini @ 2001-11-07 0:21 UTC (permalink / raw)
To: vangal.venkatesh; +Cc: gcc-help
Hi,
>When I try to compile a simple Hello World program using g++ I do not get an
>object file or executable, although the compilation seems to be ok.
Could please post both the output of g++ -v your_hello_test.cc and your_hello_test.cc
himself?
Cheers,
Paolo.
^ permalink raw reply [flat|nested] 6+ messages in thread
* g++ in 3.0.2
@ 2001-11-06 23:20 Venkatesh, Vangal
2001-11-07 5:58 ` Venkatesh, Vangal
0 siblings, 1 reply; 6+ messages in thread
From: Venkatesh, Vangal @ 2001-11-06 23:20 UTC (permalink / raw)
To: 'gcc-help@gcc.gnu.org'
Hi,
I downloaded and compiled gcc 3.0.2 on a Pentium 4 system running
Redhat 7.1.
When I try to compile a simple Hello World program using g++ I do not get an
object file or executable, although the compilation seems to be ok.
gcc and g77 seem to work ok.
Any ideas on what may be the problem?
Vangal
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-11-17 3:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-07 5:31 g++ in 3.0.2 Venkatesh, Vangal
2001-11-07 6:46 ` Venkatesh, Vangal
-- strict thread matches above, loose matches on Subject: below --
2001-11-07 5:28 Peter Kurpis
2001-11-07 0:21 Paolo Carlini
2001-11-06 23:20 Venkatesh, Vangal
2001-11-07 5:58 ` Venkatesh, Vangal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).