Apr272010

Fix for LIB environment variable error

Published by nathan at 12:23 AM under

Scenario: 

I'm teaching a small class on C# fundamentals and while preparing a sample ran into the error below.  I was trying to run CSC.exe to compile CSharp code from the command line. 

Error:

Invalid search path 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environement variable' -- 'The system cannot find the path specified.' 

Description of the problem:

In my case, the lib folder did not exist and the compiler was trying to reference it.  Searching around online showed a few ways to fix it.  Here's the one that worked for me:

Fix:

1. Using Windows explorer, navigate to C:\Program Files\Microsoft SDKs\Windows\v6.0A

2. Create a new "lib" folder



[KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 1980 Responses

About the author

Web developer in the Seattle area