How to resolve include file names conflicts in GCC?

Posted by actual on Stack Overflow See other posts from Stack Overflow or by actual
Published on 2010-04-19T08:03:20Z Indexed on 2010/04/19 8:23 UTC
Read the original article Hit count: 184

Filed under:
|
|

I have two header files named string.h in different libraries, they are conflicted with each other and even conflicted with standard C include file of the same name.

There is no need to use any string.h except standard one, but I need to include libraries headers paths in GCC search path. Currently I use something like -I /usr/local/include/lib1 -I /usr/local/include/lib2, but that way I can not include standard C string.h.

What is the right way to resolve such conflicts?

© Stack Overflow or respective owner

Related posts about c

    Related posts about gcc