The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Learning Oracle ADF: A Beginner's Story iBot Oracle Updates (RSS) 0 04-06-2008 02:10 AM
What's wrong here? (Beginner's script) pallak7 Shell Programming and Scripting 2 02-16-2008 11:45 AM
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 07:10 AM
SSH Problem auth problem budrito UNIX for Advanced & Expert Users 1 03-17-2004 07:12 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2005
Registered User
 

Join Date: Sep 2005
Location: Chengdu-China
Posts: 1
A beginner's problem

Hi,
I'm a beginner to study linux program, I know use gcc can link one *.c file to a exe file, but how to link different source files(*.c) to a exe at once.
AnyBody know and tell me, thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 09-29-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,699
Have a look at this link.

Compiling "C" And "C++" Programs On Unix Systems - gcc/g++

There are other links as well in the FAQ section. Look at Unix Tutorials/Programming Tutorials/Shell Scripting Tutorials
Reply With Quote
  #3  
Old 09-29-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
If you have a large project with multiple source files, you should write a makefile. Check our FAQ section here. Here you will find several useful links. Check the "Automating Program Compilation - Writing Makefiles" link.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0