You must put quotes around the path as such SET LIB="c:\picstuff\cstuff" SET INCLUDE="c:\picstuff\cstuff" ---------- > From: Robert Lunn > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: MPLABC 1.21 HELP!!! > Date: Wednesday, February 26, 1997 4:05 PM > > >It cannot seem to find the include and library files. There is a > >brief mention in the help file about new "environment variables", > >but it doesn't say where to find them, create them, or even what > >exactly they are. > > > >This is what the Help File (sic) says : > > > >" To install MPLAB-C, enter Windows, run the file SETUP.EXE on the > >" distribution disk, and follow the prompts. Note that MPLAB-C will > >" create two environment variables, INCLUDE andLIB. The INCLUDE > >" environment variable gives the default directory for included > >" files. For more information, refer to the #include directive. > > Well, this seems to answer your questions. Environment > variables are found in the environment ;), they're created > with the DOS 'SET' command by definition, and as to what > these particular environment variables are... > > >" The LIB environment variable gives the default directory for the > >" libraries. If these environment variables are not specified, the > >" path is searched for the appropriate files. > > By extension, the 'INCLUDE' variable points to the directory > containing the include files. > > It looks as though the setup program should have modified > your 'autoexec.bat' file to define the new environment > variables. Perhaps your autoexec is non-standard? > > Try adding the following lines (suitably modified for your > system) to your autoexec.bat file: > > SET LIB=c:\picstuff\cstuff\l;..\l;.\l > SET INCLUDE=c:\picstuff\cstuff\h;..\h;.\h > > I'm _guessing_ that these variables operate like the PATH > variable, in that they take a sequence of path names to be > searched. > > In each case it's a typical system setup to have a 'common' > directory (c:\picstuff\cstuff\l), a 'project common' dir- > ectory (..\l), and a 'local' directory (.\l). > > ___Bob