LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2010, 12:50 PM   #16
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled

Quote:
Originally Posted by alan99 View Post
gcc will just compile it to object code. I think he forgot the next step. It must be linked. The linker will insert some 'headers' in the object file telling the operating system where to find the entry point for the code and any parameters it may be passing.
No, running gcc as shown by the OP will do both the compiling and linking. If you just want the code to be compiled, you must use the -c flag.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java code to implement "wget" to save a web page in linux Kakarot_Rathish Programming 5 03-08-2010 03:02 AM
Any idea where to find PHP code for a sharing Notepad webpage with auto-save? frenchn00b Programming 1 11-30-2009 09:09 PM
How to save text file with ASCII code?? Nejad General 7 01-04-2009 03:17 AM
HTML code to use to save a downloaded file with an other name that the URL jlinkels Programming 4 06-21-2007 08:40 PM
suggestions on how to code a program that would edit and save a text file tinieprotonjam Programming 5 01-28-2007 07:28 AM


All times are GMT -5. The time now is 06:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration