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
How to find a specific files in a many directory selamba_warrior Shell Programming and Scripting 7 05-28-2008 12:41 PM
deleting specific lines from all files in a directory vrms UNIX for Dummies Questions & Answers 3 04-25-2008 08:08 AM
List all files that contain a specific directory Sat510 SUN Solaris 7 04-17-2007 07:57 AM
extract tar files without creating directory here2learn UNIX for Dummies Questions & Answers 4 10-02-2006 04:42 PM
delete files in specific directory legato Shell Programming and Scripting 2 03-29-2006 06:46 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-12-2006
svh svh is offline
Registered User
 

Join Date: Jul 2005
Posts: 17
creating object files in a specific directory

hello,

i have a makefile in which i am specifying the option for creating the object files of the source files.

The option which i am using is this :

gcc -c main.c first.c

by default these object files are created in the same directory in which the makefile is present.

what option should i give if i want to specify a particular directory for the object files to be stored.

thanx in advance
svh
Reply With Quote
Forum Sponsor
  #2  
Old 02-13-2006
linuxpenguin's Avatar
Registered User
 

Join Date: May 2002
Location: India
Posts: 295
you can also use the -o flag for the object files to create them wherever you want them
__________________
War doesnt determine who is right, it determines who is left
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 09:11 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