Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: Disabled

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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:12 PM.

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