LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-24-2012, 10:57 PM   #1
vinodmits
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
compiling c program in linux os


dear sir
i am new in linux. my question is that how to compile C program in linux os ????
 
Old 07-24-2012, 11:55 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639

Rep: Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653
read the instructions in the README and or INSTALL file
or
read the documentation for your operating system
 
Old 07-25-2012, 12:23 AM   #3
Polyphony
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
if you're the author of the file.c then just gcc -o <name of binary you want> file.c -l<any libraries you need to include>

if you don't need any libraries just don't use the -l/-L flag
 
Old 07-25-2012, 12:56 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,747

Rep: Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561Reputation: 7561
have you already compiled anything on any (other) OS? Do you know for example MS Visual Studio?
 
  


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
compiling and running a c program in Linux myrto Linux - Newbie 6 12-21-2006 05:11 PM
Compiling a program for X-Linux 4.1 steaktc Programming 7 11-01-2005 07:36 AM
compiling a program in Linux embalmedlenin Programming 4 08-29-2003 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:45 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
Open Source Consulting | Domain Registration