Re: Linux C++ compiler
- From: Gilboa Davara <gilboad@xxxxxxxxx>
- Date: Mon, 25 Jan 2010 00:38:45 +0200
On Sun, 2010-01-24 at 15:48 -0500, Matt Smith wrote:
after typing g++ gedit_file.cc i get a filed name a.out in the same
folder that is locked. where do i go from here? thanks
You're missing the output filename:
$ gcc source_filename.cc -o output_filename
Where output_filename is name of the resulting executable. (Equivalent
to .exe file in Windows/DOS)
If you want to execute the resulting executable, type:
$ ./output_filename
If you want to be able to debug the resulting executable, try:
(Quick and dirty solution)
First, install DDD (simple but effective debugger):
$ su -c 'yum install ddd'
Compile the file with debug information.
$ gcc source_filename.cc -ggdb3 -o output_filename
Start the debugger.
$ ddd ./output_filename
- Gilboa
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
- References:
- Linux C++ compiler
- From: Matt Smith
- Re: Linux C++ compiler
- From: Patrick O'Callaghan
- Re: Linux C++ compiler
- From: Matt Smith
- Re: Linux C++ compiler
- From: Matt Smith
- Re: Linux C++ compiler
- From: Peter Langfelder
- Re: Linux C++ compiler
- From: Matt Smith
- Linux C++ compiler
- Prev by Date: RE: Package Hunt
- Next by Date: Re: Package Hunt
- Previous by thread: Re: Linux C++ compiler
- Next by thread: Re: Linux C++ compiler
- Index(es):
Relevant Pages
|