Just Learning how-to-use C# - Please can these warnings be explained

Hi

I have justed started to use c# and with only a simple "Hellow World" programme
I have the follwoing warnings.

Anyone explain why

Thanks.

Graham

Warning 1 Invalid search path 'C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' 
Warning 2 Invalid search path 'C:\Program Files\Microsoft Visual Studio\VC98\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' 


Answer this question

Just Learning how-to-use C# - Please can these warnings be explained

  • Sung Kim

    I had the same symptoms here.

    It is because of a system variable which has been set by an old installation of Visual C++

    which was never removed - even not after you de-installed this old Visual C++.

    You just have to delete this system-variable on your computer in "system settings control",

    "system", "extended", "environment variables". Then the compiler-warnings will disappear.

    Your installation of VisualStudio 2005 is okay.


  • Frederic Jacqueme

    Thanks, I believe it is exactly that. Are you talking about reg settings or something in Visual Studio
  • OneDeveloper

    These are C++ warnings and not C#.  They are telling you that the LIB environment variable set either in your User environment or the System environment are invalid.  You need to change these to match the installation path for your installation of VS.  Nevertheless I don't think you should be getting them for C# builds.  Are you sure you chose the right project type

    Michael Taylor - 11/20/05

  • jadeice

    I would add that VC98 directory that shows up in those warning means Visual Studio 6 so somenthing is really wrong there.
  • VeeraMuthiah

    I agree...there's something seriously wrong with your installation of Visual Studio.  My advice would be to uninstall whatever versions of Visual Studio you have installed, and make sure you install one of the three versions that supports C# (Visual Studio.NET 2002, 2003, or 2005).

    If you don't have access to those versions, feel free to download the Express version for free:

    http://msdn.microsoft.com/vstudio/express/visualcsharp/

    Writing a simple Hello, World! program in C# is covered here:

    http://en.wikipedia.org/wiki/C_Sharp_programming_language

    Good luck!



  • Just Learning how-to-use C# - Please can these warnings be explained