Here’s what I’ve done so far on my x64 OS:
-
Installed Python (v2.7 —specifically 2.7.6) and added it to the system path (C:Python27)
-
Installed MS VS C++ 2010 Express Version (I already had VS 2012 but without the C++ component)
-
Installed the compiler update for Windows SDK 7.1
-
Successfully executed node-gyp configure (from my add-on directory under nodejsnode_modules where binding.gyp is located)
-
ran node-gyp build (as administrator)** This is what crashed, leaving me with:
this error:
C:Program Filesnodejsnode_modulesmsnodesql>node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@0.12.2
gyp info using node@0.10.25 | win32 | x64
gyp info spawn C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
LINK : fatal error LNK1181: cannot open input file ‘kernel32.lib’ [C:Program Filesnodejsnode_modulesmsnodesqlbuildsqlserver.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:UsersRNelsonAppDataRoamingnpmnode_modulesnode-gyplibbuild.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Users\RNelson\AppData\Roaming\npm\node_modules\node- gyp\bin\node-gyp.js" "build"
gyp ERR! cwd C:Program Filesnodejsnode_modulesmsnodesql
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
Any ideas as to what is going on?
user
4,8555 gold badges17 silver badges35 bronze badges
asked Feb 4, 2014 at 19:52
5
I had a similar problem. I found that this switch helped me
--msvs_version=2012
so for example
npm install --msvs_version=2012 <package>
answered Mar 20, 2014 at 14:58
KyleKyle
3,7354 gold badges36 silver badges46 bronze badges
3
npm config set msvs_version 2013 --global worked for me as I use VS node tools and you dont need to specify msvs_version each time you do an npm install.
I had an issue whereby npm’s config (c:Usersusername .npmrc) has an entry msvs_version=2012 which was out of date.
answered Dec 19, 2014 at 12:05
devman81devman81
7578 silver badges17 bronze badges
4
After spending a while to get this to work (for me accepted answer didn’t work, for me it’s just half solution) i did following:
-
Sadly, you must have visual studio (i installed express edition 2013
for DESKTOP) -
Installed python 2.7.3 (you don’t have to set any environment
variables) -
Run cmd as administrator and go to you project root (where is you
package.json file) -
First run:
npm config set python C:Python27python.exe -
Then:
npm install -msvs_version=2013
The trick is in command npm config set python ...path_to_python_exe... which will be provided by npm to dependency which needs python i guess. I don’t know why setting python as env variable is not enough.
answered Dec 9, 2014 at 18:11
SrleSrle
10.5k8 gold badges33 silver badges60 bronze badges
5
If all above did not work (my case — Windows10 64bit)
Delete C:Usersuser_name.node-gyp
Delete %AppData%/npm
Delete %AppData%/npm-cache
And install node-gyp again
Following instruction on node-gyp page
I chose Option 1 npm install —global —production windows-build-tools
answered Nov 30, 2016 at 14:36
vanduc1102vanduc1102
5,4621 gold badge44 silver badges41 bronze badges
2
For installing node-gyp in windows or any other OS
First you may have to download the node-gyp by
$ npm install -g node-gyp-install
Then install by
$ npm install -g node-gyp
you may need to do the above procedure as root/administrartor.
answered May 26, 2016 at 12:36
I had this same error now in 2015 when trying to install Keystone and I ran through all you told me but it didn’t work on it’s own. At the end, I just had to run the command
"C:Program FilesMicrosoft SDKsWindowsv7.1binSetEnv.CMD" /Release /x64
to set up the environment before running the command. (Don’t freak out when it turns your window text green, it’s working). So yeah I’d do the installations and set up environment variables in the same way everywhere on the internet suggests but make sure to run the above command before running any other command. It probably won’t be useful to you, but hopefully it’s useful to someone else. If that still doesn’t work, MSVS version 2010 worked for me, so install that version and use the flag -msvs_version=2010 when running the npm command.
answered Jul 2, 2015 at 15:22
AngieAngie
1031 silver badge9 bronze badges
4
For me the solution that worked with VS express was to simply install Visual Studio 2013 Express for desktop (which is the only one that gives you a developer command prompt as of 2013 version). Open developer command prompt (elevated) and run NPM install commands. This did not require any special --msvs_version arguments, it just worked.
answered Jul 16, 2015 at 20:25
JamesJames
12.6k12 gold badges67 silver badges104 bronze badges
For me (Windows 7 64bit),
I struggled with this issue for half of a day Finally It worked.
On my way :
-
At control panel, I deleted all Python, Microsoft Visual Studio, Microsoft Redistributable, and something about I installed to solve this.
-
Window Update and restart.
-
Installed Python27, and Visual Studio 2013 with no setting env-val
-
npm install node-gyp -g - I got an error same thing, but after
npm config set msvs_version 2013 --global, It works.
answered Dec 15, 2015 at 18:07
ton1ton1
6,91818 gold badges66 silver badges121 bronze badges
there is an easy to use windows build tools global node package. You could try this.
answered Feb 18, 2019 at 8:38
EvilBurritoEvilBurrito
8038 silver badges14 bronze badges
I was also getting similar issues and here is what worked for me.
- Removed Python and Visual Studio
- Installed Python 27 and Microsoft Visual Studio with «Desktop development with C++»
- Setting the python path
npm config set python /path/to/executable/python npm install node-gyp -gnode-gyp configure --msvs_version=2013
answered Dec 31, 2020 at 9:17
Just had the same problem. Install NVM (Node version manager) and then open your CMD and use NVM install node@ followed by the version your dependencies need. If you don’t know what version you might need try playing around with different version I reverted my Node back to version 14.15.0 and then used NPM install and everything ran smoothly! Hope this helps!
answered Apr 23, 2022 at 23:16
Install chocolatey in PowerShell with administrator permissions:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Install required versions of the Microsoft Build Tools for Visual Studio:
https://community.chocolatey.org/packages?q=visual+studio+tools
In my case:
choco install visualstudio2019buildtools
And install workload:
cinst visualstudio2019-workload-vctools
Worked with node 16.16.0
If used nvm. Reinstall node version. And all will work fine.
answered Aug 16, 2022 at 6:50
eustatoseustatos
6881 gold badge10 silver badges21 bronze badges
Hi Folks:
Developing win32 bit app on Win 7/64 Ultimate, VS 2010 Pro, C++.
I’ve looked at other threads about LNK1181 errors in these forums. I don’t see anything like this.
I’m building an app that uses an email DLL utility I’ve purchased. Compiles require a library called see32.lib.
When I link, I’m getting:
LNK1181: cannot open input file ‘see32.lib’
Several configurations of the project, and other projects, use this DLL and .lib without any problems. All are 32 bit apps.
Every reference to the lib’s path and name is copied and pasted, so they should be accurate.
I’m using VS’s «Project — <app> Properties… — Linker — General — Additional Library Directories» to browse for the directory that contains the .lib file.
One of the folders is «D:workcommon_release_packsmarshallsoft».
«Project — <app> Properties… — Linker — Input — Additional Dependencies» has a list that includes «see32.lib»
As you can see, there is no blank in the path to the .lib file.
The command line is very long, but includes
/LIBPATH:"D:workcommon_release_packsmarshallsoft" "gdiplus.lib" "comctl32.lib"
I decided to open a command line window and run a dir on the .lib’s path and name:
C:Userslarryl>dir D:workcommon_release_packsmarshallsoftsee32.lib
Volume in drive D is big_backup
Volume Serial Number is F841-446C
Directory of D:workcommon_release_packsmarshallsoft
04/04/2012 02:42 PM 34,040 see32.lib
1 File(s) 34,040 bytes
0 Dir(s) 1,376,328,060,928 bytes free
C:Userslarryl>
The command line window had no problem finding the .lib file.
As stated, other projects of mine seem to have no problem linking this utility, with these same entries in the project’s property’s linker specifies.
Is there something else I need to specify in the project’s properties?
Thanks
Larry
-
Edited by
Monday, June 4, 2012 7:08 PM
Problem
«LNK1181:cannot open input file…» error when including external libraries
Resolving The Problem
SYMPTOM
When building a Rose RealTime executable, the following error is encountered during the linking phase of the build:
LINK : fatal error LNK1181: cannot open input file "xxx.lib" (where "xxx" is the external library name).
CAUSE
The aforementioned error occurs when including a library in a Rose RealTime component and the compiler is unable to locate the library.
RESOLUTION
To resolve this problem, ensure that the paths to any external libraries to be included in your Rose RealTime component are defined in the «UserLibraries» field of the C++ Executable tab of the Component Specification. We recommend using virtual path maps to do this.
To define a virtual path map in Rose RealTime:
1. Click File > Edit Path Map to open the Virtual Path Map dialog.
2. Type the name of the new virtual path in the Symbol field (for example, «EXT_LIB»), but omit the leading «$» character.
3. In the Actual Path field, enter the location of the external libraries to be included.
4. Click Add. A new virtual path map symbol, $EXT_LIB, has been defined.
To use a virtual path map to include an external library in a Rose RealTime component:
1. Open the Component Specification and go to the C++ Executable tab.
2. In the UserLibraries field, use the pre-defined virtual path map symbol followed by the library name to add the external library to the component. For example, using the virtual path map defined above, the inclusion statement would look like this: $EXT_LIB/mylib.lib (where «mylib» is the actual library name).
3. Apply the change and Save your model.
For more information on using virtual path maps, please refer to the following section in the Rose RealTime on-line help:
Team Development > Storage of Model Data > Virtual Path Maps
Note: If the UserLibraries text above is required for all components in a project, then a project specific «Property Set» can be created. See Toolset Guide > Customizing the Toolset > Managing Model Properties.
[{«Product»:{«code»:»SSSHKL»,»label»:»Rational Rose RealTime»},»Business Unit»:{«code»:»BU053″,»label»:»Cloud & Data Platform»},»Component»:»—«,»Platform»:[{«code»:»PF033″,»label»:»Windows»}],»Version»:»2002.05.20.468.000″,»Edition»:»»,»Line of Business»:{«code»:»LOB45″,»label»:»Automation»}}]
|
186 / 61 / 4 Регистрация: 29.04.2011 Сообщений: 641 |
|
|
1 |
|
Не открывает либы02.09.2011, 19:25. Показов 7003. Ответов 9
такая ситуация: Сейчас у меня другие проблемы, а именно при запуске одного проекта в режиме реалайс он пишет ошибку: 1>LINK : fatal error LNK1181: cannot open input file ‘kernel32.lib’ (при запуске в режими дебаг все проходит нормально) а при запуске другого проекта в режиме дебаг он пишет 1>LINK : fatal error LNK1104: cannot open file ‘msvcprtd.lib’ (запуск в реалайс проходит успешно) как решить проблему и с чем это связанно?
0 |
|
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
02.09.2011, 19:25 |
|
Ответы с готовыми решениями: Дополнительные либы Proteus либы Не подключаются либы в CMake Кроссплатформенные либы на ubuntu 9 |
|
Заблокирован |
|
|
03.09.2011, 07:56 |
2 |
|
как решить проблему и с чем это связанно? Глянуть настройки компилятора для релиз-версии…
0 |
|
186 / 61 / 4 Регистрация: 29.04.2011 Сообщений: 641 |
|
|
03.09.2011, 12:47 [ТС] |
3 |
|
можно поподробнее пожайлуста( могу отправить скриншот настроек, только скажите каких)
0 |
|
Заблокирован |
|
|
03.09.2011, 15:01 |
4 |
|
можно поподробнее пожайлуста( могу отправить скриншот настроек, только скажите каких) Отправьте. Конкретно интересует что-то вроде этого: Как видите, у меня все эти либы прикручиваются. Добавлено через 9 минут Свойства проекта -> компоновщик -> ввод -> дополнительные зависимости -> … После чего откроется окошко типа вот этого: Там смотришь — нету нужной либы в списке? Ну значит тупо вбиваем её, и жмем «ок»
0 |
|
186 / 61 / 4 Регистрация: 29.04.2011 Сообщений: 641 |
|
|
03.09.2011, 17:39 [ТС] |
5 |
|
спасибо.
0 |
|
Заблокирован |
|
|
03.09.2011, 18:47 |
6 |
|
хм странно, вроде все есть(не находило kernel32.lib) Проверьте, если этот файл физически у вас в системе. Добавлено через 3 минуты А физически она может находится где то в области: Их там несколько разновидностей, этих либ лежать должно)
0 |
|
186 / 61 / 4 Регистрация: 29.04.2011 Сообщений: 641 |
|
|
03.09.2011, 21:34 [ТС] |
7 |
|
правельно у меня там и находиться (C:Program FilesMicrosoft SDKsWindowsv6.0ALib)
0 |
|
Заблокирован |
|
|
03.09.2011, 22:09 |
8 |
|
с путями как дела обстоят?
0 |
|
186 / 61 / 4 Регистрация: 29.04.2011 Сообщений: 641 |
|
|
03.09.2011, 22:22 [ТС] |
9 |
|
физически файлы в системе есть
0 |
|
Модератор 8759 / 6549 / 887 Регистрация: 14.02.2011 Сообщений: 22,972 |
|
|
03.09.2011, 22:45 |
10 |
|
а SDK ставил?
0 |
|
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
03.09.2011, 22:45 |
|
Помогаю со студенческими работами здесь OpenAl или Qt либы Qt 5.7 OpenGL просит либы
Дисковод LG многие диски не открывает, а те, которые открывает страшно глючат Искать еще темы с ответами Или воспользуйтесь поиском по форуму: 10 |
Я уже некоторое время встречаю странную ошибку в Visual Studio 2010.
У меня есть решение, состоящее из проекта, который компилируется в статическую библиотеку, и другого проекта, который действительно прост, но зависит от этой библиотеки.
Иногда, в последние дни очень часто, после восстановления решения или просто компиляции его с 1-3 измененными исходными файлами, я получаю следующую ошибку:
2>LINK : fatal error LNK1181: cannot open input file 'thelibrary.lib'
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
Где компиляция thelibrary.lib имела успех без каких-либо ошибок или предупреждений.
Я пробовал очистить решение, но это не всегда работает.
- Что здесь не так?
23 июнь 2011, в 10:42
Поделиться
Источник
14 ответов
В Linker, общие, дополнительные каталоги библиотек, добавьте каталог в DLL или .lib, которые вы включили в Linker, Input.
Это не работает, если вы поместите это в каталоги VС++, каталоги библиотек.
Chris Thorne
25 июнь 2012, в 03:43
Поделиться
Перейдите к:
Project properties -> Linker -> General -> Link Library Dependencies set No.
EkaYuda
29 май 2012, в 13:09
Поделиться
Я вижу только 1 вещи, происходящие здесь:
Вы не установили должным образом зависимости от thelibrary.lib в своем проекте, что означает, что thelibrary.lib построен в неправильном порядке (или в то же время, если у вас более 1 конфигурация сборки CPU, что также может объяснить случайность ошибки), (Вы можете изменить зависимости проекта в: Menu- > Project- > Project Dependencies)
Sasha
23 июнь 2011, в 09:45
Поделиться
Недавно я попал в ту же ошибку. Некоторое копание вызвало это:
http://support.microsoft.com/kb/815645
В принципе, если у вас есть пробелы на пути .lib, это плохо. Не знаю, что с тобой происходит, но кажется разумным.
Исправление: либо 1) поместить ссылку на lib в «кавычки», либо 2) добавить путь lib к вашим библиотечным каталогам (Свойства конфигурации → Каталоги VС++).
Clippy
11 нояб. 2011, в 13:35
Поделиться
У меня была такая же проблема как в VS 2010, так и в VS 2012.
В моей системе была создана первая статическая библиотека, а затем сразу же удалена при запуске основного проекта.
Проблема заключается в общей промежуточной папке для нескольких проектов. Просто назначьте отдельную промежуточную папку для каждого проекта.
Подробнее об этом здесь
alexkr
29 сен. 2013, в 12:46
Поделиться
Я решил это со следующим:
Перейдите в View- > Страницы свойств → Свойства конфигурации → Коннектор → Вход
В дополнительных зависимостях добавьте thelibrary.lib. Не используйте никаких цитат.
user2049230
07 фев. 2013, в 04:52
Поделиться
У меня была аналогичная проблема, так как я получал ошибки LINK1181 в файле .OBJ, который был частью самого проекта (и во всем проекте было всего 2 файла .cxx).
Сначала я установил проект для создания .EXE в Visual Studio, а затем в
Property Pages -> Configuration Properties -> General -> Project Defaults -> Configuration Type, я изменил .EXE на .DLL. Подозревая, что Visual Studio 2008 каким-то образом запуталась, я с самого начала воссоздал все решение с нуля с использованием режима .DLL. После этого проблема исчезла. Я предполагаю, что если вы вручную проведете свой путь через .vcproj и другие связанные файлы, вы сможете выяснить, как исправить ситуацию, не начиная с нуля (но моя программа состояла из двух файлов .cpp, поэтому было легче начать все заново).
user1726157
07 окт. 2012, в 05:29
Поделиться
Для меня проблема была неправильной директорией include. Я понятия не имею, почему это вызвало ошибку с, казалось бы, отсутствующей библиотекой lib, поскольку каталог include содержит только заголовочные файлы. И каталог библиотеки имел правильный набор путей.
mgttlinger
17 окт. 2014, в 13:43
Поделиться
Я не знаю почему, но изменив ссылку Linker- > Input- > Additional Dependencies из «dxguid.lib» на «C:Program Files (x86)Microsoft DirectX SDK (июнь 2010)Libx86dxguid.lib» (в моем случае) — единственное, что сработало.
Vic
03 дек. 2013, в 08:06
Поделиться
Я сталкиваюсь с тем же вопросом. Для меня это, по-видимому, вызвано наличием двух проектов с тем же именем, один из которых зависит от другого.
Например, у меня есть один проект с именем Foo, который создает Foo.lib. Затем у меня есть еще один проект, который также называется Foo, который создает Foo.exe и ссылки в Foo.lib.
Я просмотрел файловую активность с Монитором процессов. Похоже, что Foo (lib) создается первым — что является правильным, потому что Foo (exe) помечен как зависящий от Foo (lib). Все это прекрасно и успешно строится и помещается в выходной каталог — $(OutDir) $(TargetName) $(TargetExt). Затем Foo (exe) запускается для восстановления. Ну, перестройка — это чистый, за которым следует сборка. Похоже, что «чистый» этап Foo.exe удаляет Foo.lib из выходного каталога. Это также объясняет, почему работает последующая «сборка», которая не удаляет выходные файлы.
Ошибка в VS, я думаю.
К сожалению, у меня нет решения проблемы, так как она включает Rebuild. Обходной путь заключается в том, чтобы вручную очистить Clean, а затем Build.
Nick
25 апр. 2013, в 06:14
Поделиться
У меня была та же проблема. Решил его, указав макрос OBJECTS, содержащий все объекты компоновщика, например:
OBJECTS = target.exe kernel32.lib mylib.lib (etc)
И затем укажите $(OBJECTS) в командной строке компоновщика.
Я не использую Visual Studio, хотя, просто nmake и .MAK файл
Martin van Rijen
04 нояб. 2017, в 18:39
Поделиться
Вы также можете исправить проблему пробела в пути, указав путь библиотеки в формате DOS «8.3».
Чтобы получить форму 8.3, выполните (в командной строке):
DIR /AD /X
рекурсивно через каждый уровень каталогов.
Pierre
04 июнь 2016, в 23:16
Поделиться
Возможно, у вас есть проблемы с оборудованием.
У меня была такая же проблема на моей старой системе (процессор AMD 1800 МГц, 1 ГБ оперативной памяти, Windows 7 Ultimate), пока я не изменил 2x 512 МБ ОЗУ на 2x 1 ГБ ОЗУ. С тех пор не было никаких проблем. Также исчезли другие (второстепенные) проблемы. Угадайте, что эти два модуля объемом 512 МБ не очень понравились друг другу, потому что 2x 512 МБ + 1 ГБ или 1x 512 МБ + 2x 1 ГБ тоже не работали.
engf-010
24 июнь 2011, в 09:03
Поделиться
Я создал каталог bin на уровне project_dir, а затем создал каталог release/debug внутри папки bin, который решил проблему для меня.
Ravi Sohal
19 авг. 2013, в 17:48
Поделиться
Ещё вопросы
- 0DOM-элемент AngularJs внутри of-repeat
- 1Динамическая загрузка классов для нескольких версий Android
- 0как отключить нг-повтор с помощью кнопки angularjs?
- 1Шатёр в андроид
- 1Прогнозирование POS-тега предстоящего слова
- 1Аудио запись
- 1Обновить доступ к базе данных, c #
- 0Защита Hotlink Facebook не получает изображения
- 1Maven: «javax.json» не включается в «uber» jar через плагин maven-compiler-plugin
- 1В pandas / numpy как создать сводную таблицу с количеством строковых элементов?
- 1Загрузка приложения для Android на SD-карту
- 0скрыть и показать div нажмите на
- 0MySQL — назначить значения AUTO_INCREMENT другому столбцу в таблице
- 0Как мне постоянно обновлять значение, если оно изменилось в базе данных
- 1Нажмите на веб-просмотр и на слушателя одновременно
- 1Backbone View в модуле Browserify — не работает
- 0C ++ дизайн: сокращение связи в глубокой иерархии классов
- 0JQuery UI — DatePicker — установка второго на основе выбора из первого
- 0Получить максимальную дату для каждой строки в таблице в SQL
- 0AngularJS $ компилировать с помощью jQuery clone ()
- 0Как получить фрагмент HTML через Applescript с помощью Javascript
- 0Печать массива символов с использованием указателя на символ.
- 0Дразня сервисный звонок от контроллера, Жасмин использует реальный сервис
- 0Один тест Угловой контроллер Карма-Жасмин работает, но не другой
- 0UI-Router: перейти из дочернего состояния в одноуровневое без перезагрузки родительского контроллера?
- 1Функция JavaScript Prime Checker с синтаксисом троичного оператора
- 1Как установить FEATURE_SECURE_PROCESSING в XMLReaderFactory?
- 1Сборка Microsoft.Phone отсутствует в проекте приложения для Windows Phone 8
- 0Почему я не могу прочитать все Ctrl + «буквы»
- 1цитирование отдельных символов (слов) в строке на Java-скрипте
- 0Ядро CUDA автоматически вызывает ядро для завершения добавления вектора. Почему?
- 1Unity RegisterInstance воссоздает синглтон каждый запрос
- 0Попытка использовать матрицу вращения и неудача
- 1Суммируйте вместе определенные значения подряд [дубликаты]
- 1Как нажать на радиокнопку в соответствии с HTML, используя Selenium и Python
- 0Win32 C / C ++ Чтение BMP ширины и высоты из байтового массива
- 1Стилизация добавила строки в ArrayAdapter ListView Android
- 1Скачать несколько файлов sharpSSH
- 0Как удалить 2 строки таблицы с предложением WHERE в одной таблице?
- 1Ember.js 2, transitionTo, используя несколько динамических сегментов на маршруте первого уровня
- 0CKEditor JQuery не обновляет значения
- 1Как перебирать строки Pandas и изменять каждую ячейку в зависимости от ее ранга в строке?
- 1Какие ресурсы требуются для запуска Flash на Android?
- 1производительность генерации двоичных файлов
- 0jquery: могу ли я динамически изменять href ссылки при наведении курсора?
- 1Получение текста из списка
- 0Почему эти переключатели переключаются, когда они выбраны?
- 0Grunt не обновляет теги Script в приложении Angularjs
- 0Клонирование элементов формы при клике дублирует данные
- 0Не удается включить файл js и css в облачное приложение Google

- Remove From My Forums
-
Question
-
I compiled my program after doing all those settings in «Project Setting Menu»
but i got an error :fatal error LNK1181: cannot open input file «,.obj»
I think there is some problem in the settings. I checked all the settings tht i know but still not able to remove this error.
If anyone know about the settings in VC++ then plz reply
any help will be of great use
Thanks in advance
Answers
-
belikekhushi wrote: I checked my linker settings.. Earlier i was using comma to seperate entries sso in was getting error with «,.obj» input file
Now, i replaced comma with semi-colon and now i am getting same error with «;.obj» file..
I think the libraries files have to be separated with a single space. If path contains a space, then use quotation marks.
Otherwise «;» and «,» are treated as file names with «.obj» default extension.
Hope it helps.
-
Check you linker settings. Did you placed a comma into one of those fields? Separate entries with a semicolon.
-
Sorry! I have no idea.
I even can not see that there is a part like this in the command line.
Try to create a new project from scratch.
All replies
-
Check you linker settings. Did you placed a comma into one of those fields? Separate entries with a semicolon.
-
I checked my linker settings.. Earlier i was using comma to seperate entries sso in was getting error with «,.obj» input file
Now, i replaced comma with semi-colon and now i am getting same error with «;.obj» file..
Plz help me out…
-
What did you entered in you linker settings.
-
I tried following two:
First time i tried this one :
«E:MSDev98MyProjectsDCMConverterpngDebugpng.lib» ; «E:MSDev98MyProjectsDCMConverterjpegDebugjpeg.lib» ; «E:MSDev98MyProjectsDCMConverterzlibDebugzlib.lib» ; «E:MSDev98MyProjectsDCMConvertertiffDebugtiff.lib» ; «E:MSDev98MyProjectsDCMConvertercximageDebugcximage.lib»
and second time i tried this one:
E:MSDev98MyProjectsDCMConverterpngDebugpng.lib ; E:MSDev98MyProjectsDCMConverterjpegDebugjpeg.lib ; E:MSDev98MyProjectsDCMConverterzlibDebugzlib.lib ; E:MSDev98MyProjectsDCMConvertertiffDebugtiff.lib ; E:MSDev98MyProjectsDCMConvertercximageDebugcximage.lib
In both cases i m getting the same error msg
Linking…
LINK : fatal error LNK1104: cannot open file «;.obj»
Error executing link.exe. -
Look into the build log, what is the command line for the build process.
-
I am sending you the command line of build log
I am new to VC++ so, Its difficult for me to find error in this log.
Build Log
--------------------Configuration: DCMConverter - Win32 Debug--------------------
Command Lines
Creating temporary file "C:DOCUME~1ADMINI~1LOCALS~1TempRSP10B.tmp" with contents [ E:MSDev98MyProjectsDCMConverterpngDebugpng.lib ; E:MSDev98MyProjectsDCMConverterjpegDebugjpeg.lib ; E:MSDev98MyProjectsDCMConverterzlibDebugzlib.lib ; E:MSDev98MyProjectsDCMConvertertiffDebugtiff.lib ; E:MSDev98MyProjectsDCMConvertercximageDebugcximage.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/DCMConverter.pdb" /debug /machine:I386 /nodefaultlib:"msvcprtd.lib" /nodefaultlib:"msvcrtd.lib" /nodefaultlib:"msvcrt.lib" /out:"Release/DCMConverter.exe" /pdbtype:sept /libpath:"D:cximage599c_fullCxImageCxImageDLLDebug" /libpath:"D:dcmtkdcmtk-3.5.3Debug" /libpath:"D:dcmtkconfiginclude" /libpath:"D:dcmtkdcmjpeginclude" /libpath:"D:dcmtkofstdinclude" /libpath:"D:dcmtkdcmdatainclude" /libpath:"D:dcmtkdcmimgleinclude" /libpath:"D:dcmtkdcmimageinclude" /libpath:"D:dcmtkdcmjpeglibijg8" /libpath:"D:dcmtkdcmjpeglibijg12" /libpath:"D:dcmtkdcmjpeglibijg16" /libpath:"D:dcmtkzlib-1.2.1" /libpath:"D:dcmtktiff-v3.6.1libtiff" /libpath:"D:dcmtklibpng-1.2.5" .DebugDCMConverter.obj .DebugDCMConverterDlg.obj .DebugStdAfx.obj .DebugxImageDCM.obj .DebugDCMConverter.res ] Creating command line "link.exe @C:DOCUME~1ADMINI~1LOCALS~1TempRSP10B.tmp"Output Window
Linking... LINK : fatal error LNK1104: cannot open file ";.obj" Error executing link.exe.Results
DCMConverter.exe - 1 error(s), 0 warning(s) -
Sorry! I have no idea.
I even can not see that there is a part like this in the command line.
Try to create a new project from scratch.
-
As Martin suggested, try creating project from scratch and see if the issue still reproduces.
Thanks, Ayman Shoukry VC++ Team -
hello
i’am a new member; please will tell me if you have already found a solution for this problem , because i have the same problem, please it’s very urgent for me :
the message is:
Linking…
LINK : fatal error LNK1181: cannot open input file ‘.DebugAssemblyInfo.obj’
thanks a lot
-
Please create a new thread.
Check your linker settings as I wrot ein this thread. Do you have an module named AssemblyInfo?
-
thanks for your answer
i have a module named AssemblyInfo, but my programm don’t generate AssemblyInfo.obj .
I don’t know what to change in linker settings will you help me please!
-
What kind of project is this? Managed C++/CLI?
What did you added to the project, what source files you have?
-
it’s C++, with a dll main. a added sources that i had in visual studio C++ , and now i want to have them in visual studio .Net
did you think that i should change liker settings ?
-
hello
i’am a new member; please will tell me if you have already found a solution for this problem , because i have the same problem, please it’s very urgent for me :
the message is:
Linking…
LINK : fatal error LNK1181: cannot open input file ‘.DebugAssemblyInfo.obj’
thanks a lot
-
Whats in your linker settings?
-
belikekhushi wrote: I checked my linker settings.. Earlier i was using comma to seperate entries sso in was getting error with «,.obj» input file
Now, i replaced comma with semi-colon and now i am getting same error with «;.obj» file..
I think the libraries files have to be separated with a single space. If path contains a space, then use quotation marks.
Otherwise «;» and «,» are treated as file names with «.obj» default extension.
Hope it helps.
-
hi,
sorry, if i m late in replying that query.
i am not very good at vc++ but yes i have two options to go for ur problem:
first, go to the linker settings give their full path (like D;test……) and not the relative one…
then build ur code again and then execute…
if this helps thn its ok otherwise delete this «.DebugAssemblyInfo.obj» entry from the linker settings and then build the whole project again…
hope one of these may help you…
-
I confirm, after a lot of try i find that the libraries files have to be separated with a single space.
-
Hello ,
I have the same problem, using Visual studio 2008, but i really don’t understand what are the indications! How can I change the linker settings?
When i look into the Linker…it has many submodules, like Generate, Input….and in the end: Command line, which has the following:
/OUT:»C:Documents and SettingssimonaMy DocumentsVisual Studio 2008Projects1Debug1.exe» /INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:»Debug1.exe.intermediate.manifest» /MANIFESTUAC:»level=’asInvoker’ uiAccess=’false'» /DEBUG /PDB:»C:Documents and SettingssimonaMy DocumentsVisual Studio 2008Projects1Debug1.pdb» /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
I just wrote a simple Hello world program. I get this error all the time(also in Visual Studio 2005 and Visual Studio 2008):
Error 1 fatal error LNK1104: cannot open file ‘.Debugmain.obj’ 2 2
Where main is the simple hello world program, whether it’s C++ or C. I tried reinstalling many times. No luck.
Help , please??
Thanks
-
Try resetting all your settings from whithin IDE.
to do so under tool menu click import and export settings then click reset all.give it a try.
regards
Adi
A K
-
I have encounterd the same problem,but I can’t find linker in project settings,instead I find library,how can I solve the problem?
-
I ran into a similar problem on Visual Studio 2017.
The error was indeed cryptic. I got it to work by realizing that I forgot to include some external cpp files that needed to be compiled and built with my project.
For those of you who run into the problem and found this thread, check and make sure that you haven’t forgot to include:
- External .cpp files
- That in your Linker –> Input –> Additional Dependencies settings, there’s no blank library like «.» or «$(INHERIT)»
14 Years Ago
Unable to open file with fstream. it always seems to jump to the else statement and gives me the error message «Error: can’t open input file «. I have included in the header file
#include <iostream>
#include <fstream>
#include <sstream>
and in the class file i have the following code and yes i do have a txt file called studentFileName.txt in the same directory.
void StudentRecord::addFile(const string& studentFileName){
ifstream infile;
infile.open ("studentFileName.txt");
if (infile.is_open()){
string line, word, StudentName, ProgramCode;
while(getline(cin, line)){
istringstream stream(line);
while (stream >> word) {
int i = 0;
if (i % 2 == 0) {
StudentName = word;
}
else {
ProgramCode = word;
}
StudentRecord::add(StudentName, ProgramCode);
}
}
infile.close();
}
else {
cout << "Error: can't open input file " << endl;
}
}
Any solutions would be greatly appreciated as i am completely stumped.
Thankyou
Recommended Answers
The file is not in the current directory. If you are using MS-Windows then use Explorer to verify the location of the file and add the full path to the filename.
infile.open ("c:\MyFolder\studentFileName.txt");
Jump to Post
All 3 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
14 Years Ago
The file is not in the current directory. If you are using MS-Windows then use Explorer to verify the location of the file and add the full path to the filename. infile.open ("c:\MyFolder\studentFileName.txt");
14 Years Ago
Someone on another forum solved this one for me
Maybe try this:
infile.open(file.c_str());
substitute file for your file.
1 Year Ago
I ran into this problem and none of the above solved the problem. It was because I was copy pasting the full path from the file security tab. This adds extra formatting code that doesn’t show unless you mouse over. Typing the full path manually, instantly fixed the issue.
Reply to this topic
Be a part of the DaniWeb community
We’re a friendly, industry-focused community of developers, IT pros, digital marketers,
and technology enthusiasts meeting, networking, learning, and sharing knowledge.


По клику не открывает документ который нужен , а открывает просто папку
