Problem with VC++ and long #include paths

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm running into trouble where Visual C++ .Net 2002 is not finding some
include files. I've determined that the total length of the include
path (when combined with the project dir and the -I directories) is
greater than ~260 characters or so

Is there any fix or workaround for this? (renaming my files and
directories is not an option) I've searched for a while no
and I don't know why others have not have this problem

Thank

Gary
 
=?Utf-8?B?R2FyeSBC?= said:
I'm running into trouble where Visual C++ .Net 2002 is not finding some
include files. I've determined that the total length of the include
path (when combined with the project dir and the -I directories) is
greater than ~260 characters or so.

Is there any fix or workaround for this? (renaming my files and
directories is not an option) I've searched for a while now
and I don't know why others have not have this problem.

I don't know of any particular work around, but when I install Visual
Studio I never use the default of "C:/Program Files/..." because it's too
long anyway. I used "C:/MSVS6", "C:/MSVS.NET", etc. Also, I use "C:/SDK" as
the base for any additional SDK's I install (DirectX, etc.). It helps avoid
problems like the one you've run into.
 
Gary B said:
I'm running into trouble where Visual C++ .Net 2002 is not finding some
include files. I've determined that the total length of the include
path (when combined with the project dir and the -I directories) is
greater than ~260 characters or so.

MAX_PATH is 260 IIRC, so it's not suprising that failures start to occur
near there since not even the OS itself guarantees that paths longer than
that can be used (they can be, but they require special care - Unicode,
\\?\ prefix, etc).

-cd
 
Back
Top