Ошибка lnk1104 не удается открыть файл msvcurt lib

I had the same problem and I was able to fix it as suggested by MGetz. This answer just adds more detail.

Open the project’s property pages, via the Project menu (Project/Properties) or from the context menu on the project in the solution explorer.

enter image description here

Find Platform Toolset in the General section.

enter image description here

Open the drop down list and select <inherit from parent or project defaults> if that option is present.

enter image description here

This worked for me. In my case that resulted in selection of the toolset Visual Studio 2010 (v100), but I think that will be dependent on what toolsets you have installed.

After selecting the toolset, Visual Studio indicates it next to the project name in the solution explorer.

enter image description here

If the option <inherit from parent or project defaults> is not available, then try one of the others. Since you said that your project was created with Visual Studio 2012, you should probably try selecting that version.

I had the same problem and I was able to fix it as suggested by MGetz. This answer just adds more detail.

Open the project’s property pages, via the Project menu (Project/Properties) or from the context menu on the project in the solution explorer.

enter image description here

Find Platform Toolset in the General section.

enter image description here

Open the drop down list and select <inherit from parent or project defaults> if that option is present.

enter image description here

This worked for me. In my case that resulted in selection of the toolset Visual Studio 2010 (v100), but I think that will be dependent on what toolsets you have installed.

After selecting the toolset, Visual Studio indicates it next to the project name in the solution explorer.

enter image description here

If the option <inherit from parent or project defaults> is not available, then try one of the others. Since you said that your project was created with Visual Studio 2012, you should probably try selecting that version.

Перейти к контенту

  • Remove From My Forums
  • Question

  • NO NORMAL CUT AND PASTE AVAILABLE?? I’ve used the insert code to state the problem.

    I developed a program 9-10 years ago for the Navy using VS2005. While I’ve gone on to better and greater things, I’ve been called upon at various times to maintain/modify this software. One of the last times was in 2012 using VS2010. I’ve just recently been called on to investigate adding some modifications. We now have VS2017. I was able to right click on the solution to convert it into a form that VS2017 could handle but when I attempted to compile, I got the error in the subject line. It seems that there is a problem updating a “.vcxproj” file.
    I did a search and MSVCURT.lib does exist, so one problem must be telling the compiler where it is.
    
    The SDK Version is 10.0.17134.0. Platform toolset is v141.
    
    In various searches, I came across the following piece of info:
    
    msvcurt.lib
    Deprecated Static library for the pure managed CRT.
    /clr:pure
    
    msvcurtd.lib
    Deprecated Static library for the Debug version of the pure managed CRT. Not redistributable.
    /clr:pure
    
    Wonderful. What do I do about this?
    
    Some things I’ve tried unsuccessfully:
    (1)	Go into project properties and linker. Select additional library directories and inherit from parent or project defaults. RESULT – nothing.
    (2)	Looked at compiler options but couldn’t figure out which options I should change.
    
    Basic problem is clearly that VS2017 is not backward compatible with VS2010.
    
    Machine I’m using is on Navy RTD&E (research development test & evaluation) system. I have only user privileges. If anything needs to be downloaded or the like, I have to work through the IT people.
    
    If one were steeped in all of the intricacies of the Visual Studio C++ family of software for the past 10 years or so, it might be possible to figure this out. I’m not.
    
    Help appreciated.
    

Answers

  • Many thanks! I can now compile. There is now a warning and I’d like to get rid of it. Here’s what it says:

    Link: /LTCG specified but no code generation required; remove /LTCG from the link command line to improve performance.

    I assume there is some linker option this relates to but what this is and what needs to be changed I don’t know.

    Ordinarily, in a release build the default project properties general options will look like this —

    and the Linker Optimization options will look like —

    Change the general properties to this —

    and so then the Linker optimization options should appear as —

    • Marked as answer by

      Friday, January 18, 2019 3:49 PM

  • With respect, this is not helpful. Both I and the Navy want an existing application that works to continue to work without spending large amounts of the taxpayers’ money to rewrite it. Practically, I don’t care whether the code is «pure» or not.
    To me, that is a Microsoft jargon word.

    To restate my question: What is the minimum amount of work needed to get this code to compile? Do I have to use a particular include file? Is there some collection of system functions/methods that I have to use? It can’t be this complicated for someone
    with technical competence in this Microsoft tool to be able to understand what is going on and offer a fix to a customer of the product. In my case, I’m just a user, the customer is Uncle Sam.

    Then change the Common Language Runtime option from /clr:pure to /clr.  If it builds, then its time to commence testing.

    • Marked as answer by
      CP Hager
      Thursday, January 17, 2019 7:35 PM

Kim_95

0 / 0 / 0

Регистрация: 13.04.2016

Сообщений: 1

1

07.06.2018, 10:42. Показов 1224. Ответов 0

Метки нет (Все метки)


Подскажите, пожалуйста, как исправить ошибку? выдается при сборке проекта.
код не мой, я исправила один из файлов и при сборке выдается следующая ошибка.

Миниатюры

Fatal error LNK1104: не удается открыть файл "MSVCURT.lib"
 

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

0

Programming

Эксперт

94731 / 64177 / 26122

Регистрация: 12.04.2006

Сообщений: 116,782

07.06.2018, 10:42

Ответы с готовыми решениями:

Error LNK1104. не удается открыть файл «kernel32.lib»
Сталкивался ли кто-нибудь с такой ошибкой? Установил VS 2013 Ultimate. Ошибка при компилировании…

«Не удается найти указанный файл» после нажатия F5
У меня установлены Visual C++ 2008 и Visual Studio Community, и ни один, ни другой не могут…

Ошибка компиляции «не удается найти указанный файл»
Знаю, что уже много подобных тем созданно, но я их все прочел, пробовал делать, что подсказывали -…

Ошибка в VS2015: «Не удается найти автоматически сохраняемый файл параметров»
Что это за ошибка и как ее можно исправить ?
P.S. после чего VS2015 не закрывается и не…

0

IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

07.06.2018, 10:42

Помогаю со студенческими работами здесь

Ошибка C1083 «Не удалось открыть файл источник…»
Скачал Visual Studio 2015. После компиляции, Visual выдал ошибку &quot;Не удалось открыть файл…

Не компилируются программы в Visual C# 2008: «Не удалось открыть файл метаданных»
При компиляции любой программы (консольные я имею ввиду) выводится ошибка

Фреймворк пробовал…

Загружено «C:WindowsSystem32atig6txx.dll». Невозможно найти или открыть PDB-файл
Пытаюсь установить OpenCV 3.2.0 на VisualStudio 2017, на 7 винде.
Сборка прошла успешна, но при…

После запуска среды выскакивает окошечко с ошибкой «Unknown error» или «Неизвестная ошибка»
Доброго времени суток. Возникла проблема.
После запуска среды выскакивает окошечко с ошибкой…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

1

  • Remove From My Forums
  • Question

  • NO NORMAL CUT AND PASTE AVAILABLE?? I’ve used the insert code to state the problem.

    I developed a program 9-10 years ago for the Navy using VS2005. While I’ve gone on to better and greater things, I’ve been called upon at various times to maintain/modify this software. One of the last times was in 2012 using VS2010. I’ve just recently been called on to investigate adding some modifications. We now have VS2017. I was able to right click on the solution to convert it into a form that VS2017 could handle but when I attempted to compile, I got the error in the subject line. It seems that there is a problem updating a “.vcxproj” file.
    I did a search and MSVCURT.lib does exist, so one problem must be telling the compiler where it is.
    
    The SDK Version is 10.0.17134.0. Platform toolset is v141.
    
    In various searches, I came across the following piece of info:
    
    msvcurt.lib
    Deprecated Static library for the pure managed CRT.
    /clr:pure
    
    msvcurtd.lib
    Deprecated Static library for the Debug version of the pure managed CRT. Not redistributable.
    /clr:pure
    
    Wonderful. What do I do about this?
    
    Some things I’ve tried unsuccessfully:
    (1)	Go into project properties and linker. Select additional library directories and inherit from parent or project defaults. RESULT – nothing.
    (2)	Looked at compiler options but couldn’t figure out which options I should change.
    
    Basic problem is clearly that VS2017 is not backward compatible with VS2010.
    
    Machine I’m using is on Navy RTD&E (research development test & evaluation) system. I have only user privileges. If anything needs to be downloaded or the like, I have to work through the IT people.
    
    If one were steeped in all of the intricacies of the Visual Studio C++ family of software for the past 10 years or so, it might be possible to figure this out. I’m not.
    
    Help appreciated.
    

Answers

  • Many thanks! I can now compile. There is now a warning and I’d like to get rid of it. Here’s what it says:

    Link: /LTCG specified but no code generation required; remove /LTCG from the link command line to improve performance.

    I assume there is some linker option this relates to but what this is and what needs to be changed I don’t know.

    Ordinarily, in a release build the default project properties general options will look like this —

    and the Linker Optimization options will look like —

    Change the general properties to this —

    and so then the Linker optimization options should appear as —

    • Marked as answer by

      Friday, January 18, 2019 3:49 PM

  • With respect, this is not helpful. Both I and the Navy want an existing application that works to continue to work without spending large amounts of the taxpayers’ money to rewrite it. Practically, I don’t care whether the code is «pure» or not.
    To me, that is a Microsoft jargon word.

    To restate my question: What is the minimum amount of work needed to get this code to compile? Do I have to use a particular include file? Is there some collection of system functions/methods that I have to use? It can’t be this complicated for someone
    with technical competence in this Microsoft tool to be able to understand what is going on and offer a fix to a customer of the product. In my case, I’m just a user, the customer is Uncle Sam.

    Then change the Common Language Runtime option from /clr:pure to /clr.  If it builds, then its time to commence testing.

    • Marked as answer by
      CP Hager
      Thursday, January 17, 2019 7:35 PM
  • Remove From My Forums
  • Question

  • NO NORMAL CUT AND PASTE AVAILABLE?? I’ve used the insert code to state the problem.

    I developed a program 9-10 years ago for the Navy using VS2005. While I’ve gone on to better and greater things, I’ve been called upon at various times to maintain/modify this software. One of the last times was in 2012 using VS2010. I’ve just recently been called on to investigate adding some modifications. We now have VS2017. I was able to right click on the solution to convert it into a form that VS2017 could handle but when I attempted to compile, I got the error in the subject line. It seems that there is a problem updating a “.vcxproj” file.
    I did a search and MSVCURT.lib does exist, so one problem must be telling the compiler where it is.
    
    The SDK Version is 10.0.17134.0. Platform toolset is v141.
    
    In various searches, I came across the following piece of info:
    
    msvcurt.lib
    Deprecated Static library for the pure managed CRT.
    /clr:pure
    
    msvcurtd.lib
    Deprecated Static library for the Debug version of the pure managed CRT. Not redistributable.
    /clr:pure
    
    Wonderful. What do I do about this?
    
    Some things I’ve tried unsuccessfully:
    (1)	Go into project properties and linker. Select additional library directories and inherit from parent or project defaults. RESULT – nothing.
    (2)	Looked at compiler options but couldn’t figure out which options I should change.
    
    Basic problem is clearly that VS2017 is not backward compatible with VS2010.
    
    Machine I’m using is on Navy RTD&E (research development test & evaluation) system. I have only user privileges. If anything needs to be downloaded or the like, I have to work through the IT people.
    
    If one were steeped in all of the intricacies of the Visual Studio C++ family of software for the past 10 years or so, it might be possible to figure this out. I’m not.
    
    Help appreciated.
    

Answers

  • Many thanks! I can now compile. There is now a warning and I’d like to get rid of it. Here’s what it says:

    Link: /LTCG specified but no code generation required; remove /LTCG from the link command line to improve performance.

    I assume there is some linker option this relates to but what this is and what needs to be changed I don’t know.

    Ordinarily, in a release build the default project properties general options will look like this —

    and the Linker Optimization options will look like —

    Change the general properties to this —

    and so then the Linker optimization options should appear as —

    • Marked as answer by

      Friday, January 18, 2019 3:49 PM

  • With respect, this is not helpful. Both I and the Navy want an existing application that works to continue to work without spending large amounts of the taxpayers’ money to rewrite it. Practically, I don’t care whether the code is «pure» or not.
    To me, that is a Microsoft jargon word.

    To restate my question: What is the minimum amount of work needed to get this code to compile? Do I have to use a particular include file? Is there some collection of system functions/methods that I have to use? It can’t be this complicated for someone
    with technical competence in this Microsoft tool to be able to understand what is going on and offer a fix to a customer of the product. In my case, I’m just a user, the customer is Uncle Sam.

    Then change the Common Language Runtime option from /clr:pure to /clr.  If it builds, then its time to commence testing.

    • Marked as answer by
      CP Hager
      Thursday, January 17, 2019 7:35 PM

Установите версию сообщества VS2017 Несколько дней назад, сегодня (2019.4.15) Напишите отчет о программе консоли неверен следующим образом следующим образом

Оказалось, что я не мог найти файл msvcprd.lib. Я пошел, чтобы найти его в Интернете. Есть похожие ситуации, но решение не очень подробно. Сегодня я публикую подробные шаги решения этой проблемы.

Метод 0:

Метод 1:

Обычно это причина, по которой файл LIB не включен. Как правило, выполняются следующие три шага:

1. Проверьте, есть ли файл каталог, в котором находится файл LIB

2. Определите комментарий #pragma (lib, «xxx.lib») // «xxx.lib» в начале исходного файла

3. Если путь файла библиотеки находится в дополнительных зависимостях.

Метод 2:

  1. 1 Во -первых, ищите файл MSVCPRTD.LIB, который чертовски чертовски файл MSVCPRTD.LIB, который чертовски и находит этого парня. Помните этот каталог.

  1. 2 Добавьте каталог, только что искал в опции дополнительных библиотечных каталогов в соответствии с линкером-> генералом инженерного атрибута. (Китайская версия VS: инженерный атрибут, Link-> GM-> Дополнительный библиотечный каталог)

  1. 3 Добавьте MSVCPRTD.LIB в опцию дополнительных условий под руководством Linker-> вход, а затем подтвердите.

  1. 4 Соберите снова, ОК.


Ps: sleep () файл головки функции

        #include <windows.h>  //Sleep(n)

Я хочу запрограммировать приложение MFC в Visual Studio 2012. Я создал пустой проект с пустым файлом cpp. когда я строю проект, я получу это сообщение об ошибке

 error LNK1104: cannot open file 'MSVCRTD.lib'  C:Usersmajdocumentsvisual studio 2012ProjectsMFCWindowDemoMFCWindowDemoLINK

Я установил «Дополнительные каталоги библиотек» в свойстве Linker of Project в путь к файлу lib

    C:Program FilesMicrosoft Visual Studio 11.0VClib

но когда я проверил путь, в нем не было MSVCRTD.lib. так что я должен сделать для этого?

У меня Visual Studio 2008, 2010 и 2012 установлены вместе, все они установлены по порядку.

0

Решение

я просто
1-деинсталлированная Visual Studio 2012,
2 — удаленная папка Microsoft Visual Studio 11.0 в программных файлах
3- удаленный узел дерева HKey_LOcal_Machine Software microsoft VisualStudio 11.0 в реестре
4- Установлена ​​Visual Studio 2012

проблема решена

0

Другие решения

Я столкнулся с подобной проблемой с Visual Studio 2017.

Мне пришлось установить несколько недостающих пакетов в VS 2017 для разработки на C ++ Desktop:

VS 2017 Пакеты для разработки на C ++

0

Hi,

I’m getting error described in the title.

My environment is next:

  • cl version: 19.13.26129
  • MSVC: Microsoft Visual Studio Community 2017; Version 15.6.4; VisualStudio.15.Release/15.6.4+27428.2015
  • MSVC is installed in non-default directory: C:/Programs/Microsoft Visual Studio

Dumping compiler.getLibraryPaths() on line 82 in config.cake gives next folders:

['C:ProgramsMicrosoft Visual Studio2017CommunityVCToolsMSVC14.13.26128libx64',
 'C:Program Files (x86)Windows Kits10Lib10.0.16299.0ucrtx64',
 'C:Program Files (x86)Windows Kits10Lib10.0.16299.0umx64']

Running cake with command line like: cake.bat release=debug architecture=x64 gives next error:

Archiving buildwindows_x64_msvc15_debuglibcppcoro.lib
Linking buildwindows_x64_msvc15_debugtestrun.exe
LINK : fatal error LNK1104: cannot open file 'msvcurtd.lib'
C:ProgramsMicrosoft Visual Studio2017CommunityVCToolsMSVC14.13.26128binHostX64x64link.exe: failed with exit code 1104
Build failed with 1 errors.
The following targets failed to build:
- build/windows_x64_msvc15_debug/test/run.exe

I did «fix» locally like this one:

    libraryPaths=[vcLibDir] + ucrtInfo.libDirs + windowsSdkInfo.libDirs
      + ["C:ProgramsMicrosoft Visual Studio17CommunitySDKScopeCppSDKVClib"],

in toolscakesrccakelibrarycompilersmsvc.py file, getVisualStudio2017Compiler() and everything works fine.

Am I missing something ?
Will be glad to help you with anything :)

Thanks

UPD: also, x86 builds require to link with vcruntime library, otherwise, there are linker errors:

1>Linking buildwindows_x86_msvc15_optimisedtestrun.exe
1>main.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler3
1>main.obj : error LNK2001: unresolved external symbol _memmove
1>main.obj : error LNK2001: unresolved external symbol __purecall
1>main.obj : error LNK2001: unresolved external symbol ___std_terminate
1>main.obj : error LNK2001: unresolved external symbol _strstr
1>main.obj : error LNK2001: unresolved external symbol _strrchr
1>recursive_generator_tests.obj : error LNK2001: unresolved external symbol ___std_exception_destroy
1>msvcrt.lib(throw_bad_alloc.obj) : error LNK2001: unresolved external symbol ___std_exception_destroy
1>recursive_generator_tests.obj : error LNK2001: unresolved external symbol ___std_exception_copy
1>msvcrt.lib(throw_bad_alloc.obj) : error LNK2001: unresolved external symbol ___std_exception_copy
1>file_tests.obj : error LNK2001: unresolved external symbol ___std_type_info_compare
1>msvcrt.lib(thread_safe_statics.obj) : error LNK2001: unresolved external symbol ___vcrt_InitializeCriticalSectionEx


Я создал новый проект C++ в Visual Studio 2008. Код еще не написан, изменены только настройки проекта.

когда я компилирую проект, я получаю следующую фатальную ошибку:

фатальная ошибка LNK1104: не удается открыть файл ‘C:Program.obj’


2352  


19  

19 ответов:

эта конкретная проблема вызвана указанием зависимости для файла lib, который имел пробелы в своем пути. Путь должен быть окружен кавычками для правильной компиляции проекта.

на Свойства Конфигурации -> Компоновщик -> Ввод вкладка свойств проекта, есть Дополнительные Зависимости собственность. Эта проблема была исправлена путем изменения этого свойства:

C:Program файлыпрограммное обеспечение
sdklib библиотека.Либ

To:

» C:Program файлыпрограммное обеспечение
sdklib библиотека.lib»

где я добавил кавычки.

Это может произойти, если файл все еще работает.

:-1: ошибка: LNK1104: не удается открыть файл ‘ debug****.exe’

проблема ушла для меня после закрытия и повторного открытия Visual Studio. Не знаю, почему возникла проблема, но это может быть стоит попробовать.

Это было на VS 2013 Ultimate, Windows 8.1.

проверьте также, что вы не включили это: свойства конфигурации -> C / C++ — > препроцессор -> предварительная обработка файла.

У меня было то же самое problem.It вызвано символом», » в имени папки дополнительной библиотеки path.It решается путем изменения дополнительного пути к библиотеке.

моя проблема была отсутствует .lib расширение, я просто связывал против mylib и ВС решил искать mylib.obj.

в моем случае это был вопрос неправильной ссылки. Проект ссылался на вывод другого проекта, но последний не выводил файл, где первый искал.

для сборки проекта (название проекта -> построение зависимостей -> сборки настройки -> компилятор MASM (некоторые)), задание Создать Предварительно Обработанный Список Источников до True вызвал проблему и для меня, очистив настройку, исправил ее. VS2013 здесь.

Я сталкиваюсь с той же проблемой, когда компоновщик жалуется на отсутствие основного исполняемого файла. Это произошло во время нашего порта решения для нового Visual Studio 2013. Решение представляет собой разнообразное сочетание управляемых и неуправляемых проектов / кода. Проблема (и исправить) в конечном итоге отсутствует приложение.конфигурации файл в папке решения. Потребовался день, чтобы понять это: (, поскольку выходной журнал был не очень полезен.

у меня была та же ошибка, только с пакетом Nuget, который я установил (тот, который не является только заголовком), а затем попытался удалить.
Что было неправильно для меня, так это то, что я все еще включал заголовок для пакета, который я только что удалил в одном из моих .cpp файлы (довольно глупо, да).
Я даже удалил дополнительную ссылку на каталоги библиотеки в Project -> Properties -> Linker -> General, но, конечно, безрезультатно, так как я все еще пытался ссылаться на несуществующий заголовок.

определенно сбивает с толку сообщение об ошибке в этом случае, так как имя заголовка <boost/filesystem.hpp> но ошибка дала мне "cannot open file 'llibboost_filesystem-vc140-mt-gd-1_59.lib'" и никаких номеров строк или чего-то еще.

Я отвечаю, потому что я не вижу это конкретное решение, перечисленное кем-либо еще.

по-видимому, мой антивирус (Ad-Aware) отмечал DLL, от которой зависит один из моих проектов, и удалял его. Даже после исключения каталога, где живет DLL, то же самое поведение продолжалось до тех пор, пока я не перезагрузил компьютер.

У меня была та же проблема, но решение для моего случая не указано в ответах.
Моя антивирусная программа (AVG) определила файл MyProg.exe как вирус и положить его в «хранилище вирусов». Вам нужно проверить этот склад, и если файл есть — то просто восстановить его. Это меня выручило.

Решение 1 (для моего случая): перезапустите процесс Проводника windows (да, диспетчер файлов windows).

решение 2:

  1. Закрыть Visual Studio. Выход Из Системы Windows
  2. вход в систему, откройте Visual Studio
  3. построить как обычно. Теперь он строит и может получить доступ к проблемному файлу.

Я предполагаю, что иногда файловая система или тот, кто ее контролирует, теряется с ее разрешениями. Перед перезапуском сеанса windows, пытался убить зомби msbuild32.exe процессы, перезагрузите visual studio, не проверяйте даже отображение файла проблемы. Нет проблем с конфигурацией сборки. Это случается время от времени. Некоторые внутренние вещи в Windows не исправляются,требуется перезагрузка.

в моем случае Я заменил файлы математической библиотеки из предыдущего графического курса игрового движка на GLM. Проблема заключалась в том, что я не добавил их в проект в обозревателе решений Visual Studio (даже если они были в репозитории проекта).

У меня была эта проблема в сочетании с ошибкой LNK2038, а затем это post для разделения библиотеки DLL выпуска и отладки. В этом процессе я очистил всю папку, в которой находились эти зависимости.

к счастью, у меня была резервная копия всех этих файлов, и я получил файл, для которого эта ошибка отбрасывала обратно в папку отладки, чтобы решить проблему. Код ошибки вводил в заблуждение каким-то образом, поскольку мне пришлось потратить много времени, чтобы прийти к этому совету от одного из ответов с этого поста снова.

надеюсь, что этот ответ, помогает кому-то в нужде.

Я решил это с помощью добавлять an существующий проектto мой решение, который я забыл добавить в первый раз.

у меня была та же ошибка:

fatal error LNK1104: cannot open file 'GTest.lib;'

Это было вызвано ; в конце. Если у вас есть несколько библиотек, они должны быть разделены пустым пространством (пробел), без запятой или точки с запятой!

Так что не используйте ; или что-нибудь еще при перечислении библиотек в свойства проекта > > свойства конфигурации > > Компоновщик > > ввод

У меня была такая же проблема , я просто скопировал код в новый проект и начали строить .
Некоторые другие ошибки начали приходить.
ошибка C4996:’ fopen’: эта функция или переменная может быть небезопасной. Рассмотрите возможность использования fopen_s вместо

снова решить эту проблему, я добавил свое одно свойство в проект, как показано ниже.
Проект — > свойства — > свойство конфигурации — > c/c++ .
В этой категории есть поле Имя препроцессора определения
Я добавил _CRT_SECURE_NO_WARNINGS это для решения проблемы
Надеюсь, это поможет …

Спасибо

Ответы с готовыми решениями:

Error LNK1104. не удается открыть файл «kernel32.lib»
Сталкивался ли кто-нибудь с такой ошибкой? Установил VS 2013 Ultimate. Ошибка при компилировании…

«Не удается найти указанный файл» после нажатия F5
У меня установлены Visual C++ 2008 и Visual Studio Community, и ни один, ни другой не могут…

Ошибка компиляции «не удается найти указанный файл»
Знаю, что уже много подобных тем созданно, но я их все прочел, пробовал делать, что подсказывали -…

Ошибка в VS2015: «Не удается найти автоматически сохраняемый файл параметров»
Что это за ошибка и как ее можно исправить ?
P.S. после чего VS2015 не закрывается и не…

0

Я столкнулся с этим с помощью Visual Studio 2017. Я попробовал решения, предложенные здесь, с явным добавлением путей к месту расположения файла «MSVCRT.lib». Но я чувствовал, что это, вероятно, не правильный подход, потому что ранее в течение последних нескольких недель это не было проблемой с моим проектом.

После проб и ошибок я обнаружил, что если я оставлю пустое или пустое значение в разделе Linker → Input, это выдаст мне ошибку о LNK1104: невозможно открыть файл ‘MSVCRT.lib’. В конце концов я понял, что вместо этого я должен оставить это значение.

В проекте Visual Studio щелкните правой кнопкой мыши элемент проекта на панели обозревателя решений (а не само решение, которое является самым верхним элементом), затем выберите «Свойства». Оттуда сделайте следующее:

Linker → Input: % (AdditionalDependencies)

Эта дополнительная информация может быть полезна, если вы попали в ситуацию так же, как я. Я обнаружил, что я не должен помещать какие-либо несистемные пути к библиотекам в раздел Linker → Input. С моим проектом я пытался скомпилировать с внешними .lib файлами. Ранее у меня было значение в этом разделе ввода, например: $ (ProjectDir) lib; % (AdditionalDependencies), но это приводит к другим проблемам. Я обнаружил, что правильное место (кажется, пока) для размещения путей для ссылки на внешние файлы .lib в проекте C/C++ в Visual Studio 2017 находится здесь:

V C++ Каталоги → Библиотечные каталоги: $ (ProjectDir) lib; $ (LibraryPath)

Обратите внимание, что значение $ (LibraryPath) будет включать дополнительные значения, такие как унаследованные от родителей. Мой проект папок содержал папку с именем «lib», поэтому у меня было первое значение перед точкой с запятой.

  • Ошибка lnk1104 не удается открыть файл msvcprtd lib
  • Ошибка lnk1104 не удается открыть файл mscoree lib
  • Ошибка lnb1 in триколор
  • Ошибка lma хонда инсайт
  • Ошибка lll смад bplab