how to tell compiler to look in specific folder for include files?

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Oct 2006
Posts: 60
Reputation: asilter is an unknown quantity at this point 
Solved Threads: 0
asilter asilter is offline Offline
Junior Poster in Training

how to tell compiler to look in specific folder for include files?

 
0
  #1
Aug 31st, 2007
Header asks the question.

my include files are in /abc/bcc/include/ path which are used in programs like;

  1. #include "radar.h"

I think, -? option will tell the compiler to do that. Could u plz give a little compiling sample with gcc.

Thanx.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: how to tell compiler to look in specific folder for include files?

 
1
  #2
Aug 31st, 2007
gcc -I/abc/bcc/include prog.c

A long session with the manual pages would be a good idea as well.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 756 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC