| Author |
Message |
H_D_R
Joined: 31 Jan 2008 Posts: 362 Helped: 17 Location: India
|
01 May 2008 5:43 How to Comiple Multiple C source files in Linux |
|
|
|
Hello all,
i want to compile multiple C source files in Linux.
i am using Cent OS 5.0.
can any one please tell me how can i compile Multiple source files of C on linux.
please tell me that also how can i do same compilation process on linux using C++ files.
|
|
| Back to top |
|
 |
meitolake
Joined: 07 Oct 2007 Posts: 141 Helped: 22 Location: China
|
|
| Back to top |
|
 |
dipal_z
Joined: 21 Apr 2005 Posts: 297 Helped: 32 Location: India
|
02 May 2008 6:43 How to Comiple Multiple C source files in Linux |
|
|
|
| This tutorial might help you http://www-scf.usc.edu/~csci410/handouts/make.pdf
|
|
| Back to top |
|
 |
aospinas
Joined: 24 Nov 2003 Posts: 33 Helped: 6
|
03 May 2008 0:21 Re: How to Comiple Multiple C source files in Linux |
|
|
|
hi
$ gcc file1.c file2.c -o execute.out
enjoy
|
|
| Back to top |
|
 |
shashankthebest
Joined: 12 Feb 2008 Posts: 25 Helped: 1
|
05 May 2008 8:53 Re: How to Comiple Multiple C source files in Linux |
|
|
|
If you are unable to understand the make files and the compilation process. You can use Eclipse IDE to get things done for you.
1. Download Eclipse IDE, from http://www.eclipse.org/downloads/
2. Extract the file... it does not require any installation.
3. Run Eclipse, make a new project.
4. Import all your source files using Import>Existing File system....
5. Build the project, and eclipse will create its own make files and u will get your source compiled.'
If you are using some extra libraries.. do let me know i will tell you how to mention about them in the include and load paths..
Hope that helps.
Cheers!
|
|
| Back to top |
|
 |
H_D_R
Joined: 31 Jan 2008 Posts: 362 Helped: 17 Location: India
|
05 May 2008 12:34 Re: How to Comiple Multiple C source files in Linux |
|
|
|
thank you to you all for your reply..
BTW, i have got solution of this problem but new problem occured.
can any one please help me to solve it.
it is posted @ following link.
-->> http://www.edaboard.com/ftopic309856.html
Once agian Thank you to all...!!!
|
|
| Back to top |
|
 |