0

I have a program that has several header files in a folder. Is there a way I can have the program automatically search through this folder whenever the particular .h is called?

2
Contributors
6
Replies
7
Views
9 Years
Discussion Span
Last Post by timbo2000
0

If you have
a.h
b.h
c.h

And you include a.h, what exactly are you hoping to achieve with the other header(s) ?

0

So, more specifically, i recieved a plug-in from a company that has a lot of .h files that are necessary for the program to run however not all of the .h files in the plug in are needed. I was wondering if there is a way to set a search or second directory that the program looks to whenever a specific .h file is called

0

Plugin A is compiled, and includes a.h
Plugin B is compiled, and includes a.h and b.h

You just (assuming gcc) have
gcc -c -I/path/to/plugin/headers plugina.c pluginb.c

Where /path/to/plugin/headers/a.h is an absolute path name.

0

I appologize for my lack of experience, however I am not sure how to set the path. Could you possibly give some pointers on how to accomplish this? Thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.