Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-07-2010, 03:34 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
not able to execute setrcs

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, 03:56 AM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

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

gcc -I/data/dev/projects x.c

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


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

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration