LinuxQuestions.org
Review your favorite Linux distribution.
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 01-07-2010, 04:34 AM   #1
nikcaveman
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
not able to execute setrcs


Hi,
I used to execute the command setrcs /data/dev/projects in a solaris machine. And all the files in the given path were visible from the current directory (whichever directory i am in). So that i need not copy necessary files required for compilation from the path to the current directory.
Ex: Suppose I am writing a C code x.c in the directory /root/test/. I do #include <bdm.c> in the file x.c. While executing I need not have the bdm.c in the current directory. Because I have executed the command setrcs /data/dev/projects. The compiler automatically looks for the bdm.c file in the path /data/dev/projects.

But i am not able to execute the command setrcs in linux. Is there any similar command with similar functions or if there is any different command in Linux which serves my purpose, please let me know. I am new to Linux.
 
Old 01-07-2010, 04:56 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
So setrcs just adds to the include path of the compiler? Isn't that with the '-I' flag is for?

Code:
gcc -I/data/dev/projects x.c
Evo2.

Last edited by evo2; 01-07-2010 at 04:57 AM. Reason: gcc command
 
  


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
C won't execute?!??! ectof Programming 14 05-28-2009 05:24 AM
Execute a command , reboot and then execute another command ganeshp@moris.org Linux - Newbie 3 12-03-2008 01:51 AM
INIT cannot execute Peter Shepard Ubuntu 4 12-14-2006 01:28 PM
Cannot execute '/etc/rc.S' jmartinph Slackware 2 03-15-2004 02:39 AM
g++ how do i execute? neon Linux - Newbie 5 08-14-2003 04:51 AM

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

All times are GMT -5. The time now is 12:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration