Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to Comiple Multiple C source files in Linux

Status
Not open for further replies.

H_D_R

Full Member level 6
Full Member level 6
Joined
Jan 31, 2008
Messages
329
Helped
26
Reputation
52
Reaction score
9
Trophy points
18
Location
India
Activity points
0
c++ multiple source files 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.
 

dipal_z

Full Member level 5
Full Member level 5
Joined
Apr 21, 2005
Messages
278
Helped
37
Reputation
74
Reaction score
7
Trophy points
1,298
Location
India
Activity points
3,008
This tutorial might help you **broken link removed**
 

aospinas

Member level 2
Member level 2
Joined
Nov 24, 2003
Messages
53
Helped
10
Reputation
20
Reaction score
3
Trophy points
1,288
Activity points
224
hi

$ gcc file1.c file2.c -o execute.out

enjoy
 

    H_D_R

    Points: 2
    Helpful Answer Positive Rating

shashankthebest

Junior Member level 2
Junior Member level 2
Joined
Feb 12, 2008
Messages
21
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,283
Activity points
1,384
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 https://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!
 

H_D_R

Full Member level 6
Full Member level 6
Joined
Jan 31, 2008
Messages
329
Helped
26
Reputation
52
Reaction score
9
Trophy points
18
Location
India
Activity points
0
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.

-->>

Once agian Thank you to all...!!!:D :D :D
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top