- Remove From My Forums
-
Question
-
Hi,
I am developing an application for PDA. So, I installed the following SDK, Tool and Emulator to work on PDA.
1. Installed Microsoft ActiveSyne 4.5.
2. Installed eMbedded Visual C++4.0 and Service Pack 4.
3. Installed Pocket Pc 2003 SDK
4. Installed the Emulator for Pocket PC 2003 Second Edition.
5. And also installed Developer Resources for Windows Mobile 2003 Second Edition
The project’s build and execution were successfull. now i use dumpbin command with dependents option to the windows command prompt. I am getting the following error:
error : cannot execute LINK.EXE
Can anyone tell me the reason and how can i get infromation using dumpbin command?
Morshed
Answers
-
Hi,
This could possibly be due to missing directories within the PATH command line environment variable.
How are you opening the command prompt which you run dumpbin from? If you are opening a plain command prompt and specifying the path to the dumpbin executable you will probably find the error you have stated.
Within one of the Embedded Visual C directories there should be a small batch file which configures the command line console for use with the embedded visual c tools. One aspect of this batch file is configuring the PATH envrionment variable as required to access the eVC tools such as link.exe, it also configures various other environment variables used by the linker etc.
I’m sorry but I don’t have the exact path to this batch file handy, since I havn’t had eVC installed on my machine for quite a while. It should be fairly easily found within the eVC program files directory somewhere.
Hope this helps,
Christopher Fairbairn
0 / 0 / 0 Регистрация: 11.02.2009 Сообщений: 4 |
|
1 |
|
12.02.2009, 11:11. Показов 5556. Ответов 4
В Micrisoft visual studio 6.0 при линковке проекта на С++ выходит одна ошибка: LINK : fatal error LNK1104: cannot open file «Debug/MyProject.exe» Подскажите пожалуйста как её можно исправить?
__________________
0 |
1664 / 1133 / 80 Регистрация: 21.08.2008 Сообщений: 4,726 Записей в блоге: 1 |
|
12.02.2009, 11:32 |
2 |
сделать Build проекту
0 |
0 / 0 / 0 Регистрация: 11.02.2009 Сообщений: 4 |
|
12.02.2009, 11:47 [ТС] |
3 |
сделать Build проекту ну как раз, когда я нажал на Build и возникла ошибка,
0 |
48 / 48 / 8 Регистрация: 30.01.2009 Сообщений: 168 |
|
12.02.2009, 14:50 |
4 |
Возможно, программа осталась висеть в памяти после предыдущего запуска. Нажми Ctrl+Alt+Del и поищи ее в закладке «Процессы».
0 |
0 / 0 / 0 Регистрация: 11.02.2009 Сообщений: 4 |
|
13.02.2009, 04:53 [ТС] |
5 |
Всем спасибо за ответы. Причина оказалась в следующем: в Vista по умолчанию для меня оказался закрыт доступ к папке проекта. Как только открыл полный доступ в свойствах папки проекта, линковка прошла успешно.
0 |
So I’m using Visual C++ 6.0, and trying to compile some source code, but upon compilation I get this:
Linking...
LINK : fatal error LNK1104: cannot open file "Iphlpapi.lib"
Error executing link.exe.
I’m using the correct SDK, and the directories are correct. I’ve checked, double checked, and triple checked. The file is the specified directory. I can’t figure out what the problem is. Any ideas?
Service Pack 6
SDK for Windows Server 2003 SP1 //Sounds odd, since I’m running XP SP3, but this has worked for me in the past.
Like I’ve said, it worked in the past for me, flawlessly. I don’t understand why it won’t work now.
EvilTeach
27.9k21 gold badges84 silver badges140 bronze badges
asked Apr 28, 2010 at 17:06
2
I’m sure that you have some problems with your project configuration. Try moving that file to the folder with your source code. Check the way you add
it (via input libraries) to your project. Try creating a new project and moving that .lib into your code folder (after adding it to used libraries).
answered Apr 28, 2010 at 17:26
M. WilliamsM. Williams
4,9352 gold badges25 silver badges27 bronze badges
2
sysinternals procmon will show you where the build is looking. wont fix it but will give you a clue
answered Apr 28, 2010 at 17:40
pm100pm100
46.4k23 gold badges81 silver badges141 bronze badges
(tools)
(options)
(directories) tab
(show directories for ) library files
In general, you want the path that includes the missing library to be included there.
so that all projects can find it.
The other option would be to add the library to your project using
(right click on the project)
(add files to project)
browse to, and add the library
One of those two methods should do the job for you
answered Apr 28, 2010 at 17:55
EvilTeachEvilTeach
27.9k21 gold badges84 silver badges140 bronze badges
Maybe am very late to this discussion, the following solution worked for me.
The only setting required was to include the path to the library.
In VC++ 6.0, go to Tools -> Options -> Directories tab -> Select «LibraryFiles option» under «ShowDirectories» dropdown.
Add the path to the library, in my case the path is «C:Program FilesMicrosoft SDKsWindowsv6.0ALib»
answered Sep 5, 2019 at 9:23
compile using command prompt, Check the syntax, are the white spaces correctly placed e.g «cl practice.cpp /clr:safe /doc» is executed properly but «cl practice.cpp/clr:safe/doc» produces the error u mentioned
answered May 10, 2013 at 5:45
S.aadS.aad
4561 gold badge5 silver badges22 bronze badges
|
|
|
Правила раздела Visual C++ / MFC / WTL (далее Раздела)
Ошибка линковки
, cannot open file «.nafxcwd.lib»
- Подписаться на тему
- Сообщить другу
- Скачать/распечатать тему
|
|
Junior Рейтинг (т): 0 |
У меня такая проблема: Linking…
|
Adil |
|
А сам файл-то есть хоть? Должен лежать в директории VCMFCLIB. Сообщение отредактировано: Adil — 31.07.04, 10:36 |
DiMidRoLL |
|
Senior Member Рейтинг (т): 4 |
в *.h файле наверху пишешь: pragma comment (lib,»nafxcwd») все должно работать. Я нашел такой файл тут: C:Program FilesMicrosoft Visual Studio .NET 2003Vc7atlmfclib Сообщение отредактировано: DiMidRoLL — 31.07.04, 11:39 |
UncleBob |
|
M Пользователю Pauk^ выносится предупреждение сроком на 1 неделю за неинформативное название темы, нарушение Правил Форума, Пункт 4. |
Eiden |
|
Цитата DiMidRoLL, 31.07.04, 15:37 На самом деле, в текущей папке. На папку выше — «..» |
Adil |
|
Цитата DiMidRoLL, 31.07.04, 15:37 и что, ты так со всеми библиотеками делаешь? Не слишком расточительно для места на винче? |
Pauk^ |
|
Junior Рейтинг (т): 0 |
Да блин, нету у меня нигде этого файла |
Adil |
|
Pauk^, значит установка была в урезанном варианте… |
UncleBob |
|
Цитата Pauk^, 2.08.04, 09:36 Ну это очень сомнительно, разве что ты его сам стер, или у тебя какой-то левый дистрибутив. Этот файл должен находиться в папке [Там, куда ты сказал устанавливать студию]VC98MFCLib А вообще у тебя какой-нить проект собирается без ошибок или проблема только с одним? |
Pauk^ |
|
Junior Рейтинг (т): 0 |
vo vseh projektah takoj bred ;( |
UncleBob |
|
Значит пришла пора переустановить студию |
0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)
0 пользователей:
- Предыдущая тема
- Visual C++ / MFC / WTL
- Следующая тема
[ Script execution time: 0,0393 ] [ 16 queries used ] [ Generated: 9.02.23, 08:34 GMT ]
Опции темы |
Dimkostav |
|
||
Новичок Профиль Репутация: нет
|
Здравствуйте. Помогите пожалуйста разобраться, ибо я новичок в этом не лёгком деле. Проблемма вот в чём: LINK: fatal error LNK1104: cannot open file «Release/test.exe» test.exe — 1 error(s), 0 warning(s) |
||
|
|||
Lazin |
|
||
Эксперт Профиль
Репутация: 41
|
ты пробовал включить и выключить? ——————— C++ is the steampunk of programming languages: modern ideas realized with victorian technology. |
||
|
|||
Rickert |
|
||
Ситхи не пройдут! Профиль
Репутация: 0
|
Dimkostav, посмотри, в папке проекта, подпапке Release, есть файл «test.exe», после компиляции? ——————— Ни что не внушает сна крепче, чем день приисполненный трудов! |
||
|
|||
Lazin |
|
||
Эксперт Профиль
Репутация: 41
|
——————— C++ is the steampunk of programming languages: modern ideas realized with victorian technology. |
||
|
|||
Dimkostav |
|
||
Новичок Профиль Репутация: нет
|
да, в папке Release файл «test.exe» есть. От туда тоже не запускается. И удалить «test.exe» не получется. Пишет ошибку. |
||
|
|||
Rickert |
|
||
Ситхи не пройдут! Профиль
Репутация: 0
|
Так с ходу и не скажешь. Перезагрузи машину чтоли ——————— Ни что не внушает сна крепче, чем день приисполненный трудов! |
||
|
|||
Dimkostav |
|
||
Новичок Профиль Репутация: нет
|
Не, это не помогает |
||
|
|||
xvr |
|
||||
Эксперт Профиль
Репутация: 60
|
Перезагрузи машину, затем удали test.exe. Если не получается — запусти проверку диска, похоже твой test.exe ‘немного’ битый |
||||
|
|||||
jonie |
|
||
Эксперт Профиль
Репутация: 15
|
как вариант может быть он немного действительно занят (например антивирусом или вообще запущенный). есть тулза unlocker покажет лоченые хендлы… ——————— Что-то не поняли? -> Напейтесь до зеленых человечков… эта сверхцивилизация Вам поможет… |
||
|
|||
Dimkostav |
|
||
Новичок Профиль Репутация: нет
|
Всем большое спасибо! Буду пробывать. |
||
|
|||
Dimkostav |
|
||
Новичок Профиль Репутация: нет
|
Не, не катит. Всё то же самое выдаёт… Это сообщение отредактировал(а) Dimkostav — 21.1.2009, 11:00 |
||
|
|||
Lazin |
|
||
Эксперт Профиль
Репутация: 41
|
после запуска экзешников, иногда запускаются одноименные процессы, так-уж заведено, что-бы что-то делать с экзэшниом, нужно завершить одноименный процесс ——————— C++ is the steampunk of programming languages: modern ideas realized with victorian technology. |
||
|
|||
Dimkostav |
|
||
Новичок Профиль Репутация: нет
|
Всё это ясно. Как сделать, что бы помимо процесса ещё и прогрмма запускалась? |
||
|
|||
xvr |
|
||||
Эксперт Профиль
Репутация: 60
|
Я открою тебе великую тайну — этот процесс и есть твоя программа |
||||
|
|||||
Rickert |
|
||
Ситхи не пройдут! Профиль
Репутация: 0
|
xvr, у него эта бага в релиз версии. ——————— Ни что не внушает сна крепче, чем день приисполненный трудов! |
||
|
|||
Dimkostav |
|
||||||
Новичок Профиль Репутация: нет
|
да, GUI не появился, именно так… А процесс висит… Как тут может помочь дебаггер? |
||||||
|
|||||||
Lazin |
|
||||
Эксперт Профиль
Репутация: 41
|
нигде не написано, что оно в дебаг версии работало Добавлено через 49 секунд
Debug->Step Into ——————— C++ is the steampunk of programming languages: modern ideas realized with victorian technology. |
||||
|
|||||
Dimkostav |
|
||
Новичок Профиль Репутация: нет
|
Запустил дебаггер. Жму F10 (Step Over). Застревает на строке: 0051C9CF call 00402 B90 Процесс висит. Это сообщение отредактировал(а) Dimkostav — 21.1.2009, 13:07 |
||
|
|||
xvr |
|
||
Эксперт Профиль
Репутация: 60
|
Сначала нужно откомпилить в Debug версии (Build->Set Active Configuration, F7) Да, перед тем, как прерывать, нужно убедится, что оно действительно зациклилось — процесс должен есть время CPU. Если у него около 0%, то скорее всего GUI просто не показывается и нужно смотреть исходные тексты инициализации. |
||
|
|||
vinter |
|
||
Explorer Профиль
Репутация: 13
|
так никто же не мешает сменить цель ——————— Мой блог |
||
|
|||
Dimkostav |
|
||||
Новичок Профиль Репутация: нет
|
Вот откомпилил в Debug. Появилась ещё проблемма одна: catalog.obj : error LNK2001: unresolved external symbol «void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)» ([email protected]@[email protected]) main.obj : error LNK2001: unresolved external symbol «void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)» ([email protected]@[email protected]) uchetapp.obj : error LNK2001: unresolved external symbol «public: virtual void __thiscall wxAppConsole::OnAssert(char const *,int,char const *,char const *)» ([email protected]@@[email protected]) uchetapp.obj : error LNK2001: unresolved external symbol «public: virtual void __thiscall wxAppConsole::OnAssertFailure(char const *,int,char const *,char const *,char const *)» ([email protected]@@[email protected]) Debug/test.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. test.exe — 5 error(s), 0 warning(s) Что с этим-то делать? Это сообщение отредактировал(а) Dimkostav — 21.1.2009, 14:12 |
||||
|
|||||
SerpentVV |
|
||
Шустрый Профиль
Репутация: 1
|
А это похоже на то, что библиотека не подключена или как-то неправильно подключена. |
||
|
|||
Dimkostav |
|
||||
Новичок Профиль Репутация: нет
|
Ну а может вместо этого аццкого дебагинка и проблемм с билиотеками посмотреть тексты инициализации? Потому что при компиляции в Release загрузка цп на процессе «test.exe» 0%. Это сообщение отредактировал(а) Dimkostav — 21.1.2009, 15:53 |
||||
|
|||||
xvr |
|
||
Эксперт Профиль
Репутация: 60
|
Спроси тут http://forum.vingrad.ru/forum/c-c++QT-gtk-wxWidgets.html |
||
|
|||
Dimkostav |
|
||
Новичок Профиль Репутация: нет
|
Всем большое спасибо! Многое извлёк из этой проблеммы. Буду разбираться дальше |
||
|
|||
- 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)»