Standard C++ library linker error

Hi

I get the following link error with VS.NET2005:

LINK : fatal error LNK1104: cannot open file 'libcp.lib'

But I thought that these are now de facto standards, how can it not know where
to find this.  The only lib it is set to ignore is libc.lib for the debug build, and libcpp.lib
for the release build.

Ta

MNiM


Answer this question

Standard C++ library linker error

  • Damien Sauveron

    Hi

    The way I understand it, libc.lib, which is set to be ignored, is now deprecated.
    But, libcp.lib is part of the standard c++ header libraries, as mentioned on the
    webpage you point to above.  So, I'm still at a loss to explain this error.

    Thanks anyway.

    MNiM

  • Bjorn Erik

    Do you actually have 'libcp.lib' on your machine with the VC2005 installation

    Thanks,
      Ayman Shoukry
      VC++ Team

  • Phildo123894

    It appeares one of your librariries is still using libcp.lib which I don't believe is part of VC2005.

    Hope the following link helps: http://msdn2.microsoft.com/en-us/library/8h8eh904.aspx

    Thanks,
      Ayman Shoukry
      VC++ Team

  • DrRickS

    The single-threaded CRT libraries have been removed in VC++2005.

    See http://msdn2.microsoft.com/en-us/library/abx4dbyh.aspx

    In particular,
    Note   Starting in Visual C++ 2005, LIBCP.LIB and LIBCPD.LIB (via the old /ML and /MLd options) have been removed. Use LIBCPMT.LIB and LIBCPMTD.LIB instead via the /MT and /MTd options.


    See also http://msdn2.microsoft.com/en-us/library/ms235497.aspx and http://msdn2.microsoft.com/en-us/library/ms235505.aspx

  • Standard C++ library linker error