Cannot open file error executing link exe

Hi,
  • 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»
Error executing link.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

Цитата
Сообщение от oxotnik
Посмотреть сообщение

сделать 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's user avatar

EvilTeach

27.9k21 gold badges84 silver badges140 bronze badges

asked Apr 28, 2010 at 17:06

Rob's user avatar

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. Williams's user avatar

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

pm100's user avatar

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

EvilTeach's user avatar

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

ShivaPrasad Gadapa's user avatar

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.aad's user avatar

S.aadS.aad

4561 gold badge5 silver badges22 bronze badges

    msm.ru

    Нравится ресурс?

    Помоги проекту!

    !
    Правила раздела Visual C++ / MFC / WTL (далее Раздела)

    >
    Ошибка линковки
    , cannot open file «.nafxcwd.lib»

    • Подписаться на тему
    • Сообщить другу
    • Скачать/распечатать тему



    Сообщ.
    #1

    ,
    31.07.04, 10:29

      Junior

      *

      Рейтинг (т): 0

      У меня такая проблема:
      Я запускаю проект и ошибка:

      Linking…
      LINK : fatal error LNK1104: cannot open file «.nafxcwd.lib»
      Error executing link.exe

      :((
      Я знаю, что весь код правильно написал, потому что раньше этот проект работал, а щас запускаю, и эта ошибка. Эта одибка появляется во всех проектах. Помогите плизз!


      Adil



      Сообщ.
      #2

      ,
      31.07.04, 10:32

        А сам файл-то есть хоть? Должен лежать в директории VCMFCLIB.
        Вообще-то, «.» настораживает — с путями то все правильно?
        Что у тебя в Tools=>Options, Directiries,Library files прописано?

        Сообщение отредактировано: Adil — 31.07.04, 10:36


        DiMidRoLL



        Сообщ.
        #3

        ,
        31.07.04, 11:37

          Senior Member

          ****

          Рейтинг (т): 4

          в *.h файле наверху пишешь:

          ExpandedWrap disabled

            pragma comment (lib,»nafxcwd»)

          все должно работать.

          Я нашел такой файл тут: C:Program FilesMicrosoft Visual Studio .NET 2003Vc7atlmfclib
          Значит он не самопальный, а входит в visual Studio
          . — если не ошибаюсь, означает, что данный файл должен находится на папку выше.
          Если его там нету, то поищи и скопируй в папку с проектом, глядишь заработает :)

          Сообщение отредактировано: DiMidRoLL — 31.07.04, 11:39


          UncleBob



          Сообщ.
          #4

          ,
          31.07.04, 11:40

            M

            Пользователю Pauk^ выносится предупреждение сроком на 1 неделю за неинформативное название темы, нарушение Правил Форума, Пункт 4.


            Eiden



            Сообщ.
            #5

            ,
            31.07.04, 11:41

              Цитата

              DiMidRoLL, 31.07.04, 15:37
              . — если не ошибаюсь, означает, что данный файл должен находится на папку выше.

              На самом деле, в текущей папке. На папку выше — «..»


              Adil



              Сообщ.
              #6

              ,
              31.07.04, 11:45

                Цитата

                DiMidRoLL, 31.07.04, 15:37
                то поищи и скопируй в папку с проектом, глядишь заработает

                и что, ты так со всеми библиотеками делаешь? Не слишком расточительно для места на винче? :D


                Pauk^



                Сообщ.
                #7

                ,
                02.08.04, 05:36

                  Junior

                  *

                  Рейтинг (т): 0

                  Да блин, нету у меня нигде этого файла :(


                  Adil



                  Сообщ.
                  #8

                  ,
                  02.08.04, 06:34

                    Pauk^, значит установка была в урезанном варианте…


                    UncleBob



                    Сообщ.
                    #9

                    ,
                    02.08.04, 08:32

                      Цитата

                      Pauk^, 2.08.04, 09:36
                      Да блин, нету у меня нигде этого файла

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

                      [Там, куда ты сказал устанавливать студию]VC98MFCLib

                      А вообще у тебя какой-нить проект собирается без ошибок или проблема только с одним?


                      Pauk^



                      Сообщ.
                      #10

                      ,
                      04.08.04, 09:05

                        Junior

                        *

                        Рейтинг (т): 0

                        vo vseh projektah takoj bred ;(


                        UncleBob



                        Сообщ.
                        #11

                        ,
                        04.08.04, 10:48

                          Значит пришла пора переустановить студию

                          0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)

                          0 пользователей:

                          • Предыдущая тема
                          • Visual C++ / MFC / WTL
                          • Следующая тема

                          Рейтинг@Mail.ru

                          [ Script execution time: 0,0393 ]   [ 16 queries used ]   [ Generated: 9.02.23, 08:34 GMT ]  

                          > LNK1104, Не работает exe файл 

                          :(

                             

                          Опции темы

                          Dimkostav
                          Дата 20.1.2009, 10:07 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

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

                          Проблемма вот в чём:
                          Пишу клиентское приложение для PostgreSQL, для этого использую библиотеку wxWidgets. После того, как DialogBlocks сгенерировал код для форм добавляю файлы с расширениями cpp, h, rc в пустой проект (MS Visual Studio 6.0). Прописал необходимые пути для файлов wxWidgets, подключил необходимые библиотеки. После компиляции (Release) выдаёт следующее:

                          LINK: fatal error LNK1104: cannot open file «Release/test.exe»
                          Error executing link.exe

                          test.exe — 1 error(s), 0 warning(s)

                          PM MAIL   Вверх
                          Lazin
                          Дата 20.1.2009, 10:19 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Эксперт
                          ****

                          Профиль
                          Группа: Завсегдатай
                          Сообщений: 3820
                          Регистрация: 11.12.2006
                          Где: paranoid oil empi re

                          Репутация: 41
                          Всего: 154

                          ты пробовал включить и выключить?

                          ———————

                          C++ is the steampunk of programming languages: modern ideas realized with victorian technology.

                          PM MAIL Skype GTalk   Вверх
                          Rickert
                          Дата 20.1.2009, 10:21 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Ситхи не пройдут!
                          ****

                          Профиль
                          Группа: Комодератор
                          Сообщений: 3356
                          Регистрация: 11.7.2006
                          Где: Лакрима

                          Репутация: 0
                          Всего: 52

                          Dimkostav, посмотри, в папке проекта, подпапке Release, есть файл «test.exe», после компиляции?

                          ———————

                          Ни что не внушает сна крепче, чем день приисполненный трудов!

                          PM MAIL WWW Skype GTalk   Вверх
                          Lazin
                          Дата 20.1.2009, 10:21 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Эксперт
                          ****

                          Профиль
                          Группа: Завсегдатай
                          Сообщений: 3820
                          Регистрация: 11.12.2006
                          Где: paranoid oil empi re

                          Репутация: 41
                          Всего: 154

                          Цитата(MSDN)
                          Error Message 
                          cannot open file ‘filename’

                          The tool could not open the given file.

                          To fix by checking the following possible causes:

                          Not enough disk space.

                          File does not exist.

                          When specifying libraries in a project’s property pages dialog box, library names should be separated by spaces (and not commas).

                          Incorrect filename or path.

                          Invalid drive specification.

                          Insufficient file permissions.

                          Path for filename expands to more than 260 characters.

                          If the given file is named LNKn, which is a filename generated by the linker for a temporary file, the directory specified in the TMP environment variable may not exist, or more than one directory is specified for the TMP environment variable. (Only one directory path should be specified for the TMP environment variable.)

                          If the error message occurs for a library name, and you recently ported the .mak file from a previous Microsoft Visual C++ development system, the library may no longer be valid. Ensure that the library still exists in this circumstance.

                          Another program may have the file open and the linker cannot write to it.

                          Incorrect LIB environment variable. For information on how to update the LIB environment variable, see VC++ Directories, Projects and Solutions, Options Dialog Box . Make sure any directories with libraries you need are listed here. 

                          The linker uses temporary files in several cases. Even if you have sufficient disk space, a very large link can deplete or fragment the address space.

                          To fix by using the following possible solutions

                          Use /OPT (Optimizations); doing transitive comdat elimination reads all the object files multiple times.

                          Upgrade to Windows XP.

                          ———————

                          C++ is the steampunk of programming languages: modern ideas realized with victorian technology.

                          PM MAIL Skype GTalk   Вверх
                          Dimkostav
                          Дата 20.1.2009, 10:30 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Цитата(Rickert @ 20.1.2009,  10:21)
                          Dimkostav, посмотри, в папке проекта, подпапке Release, есть файл «test.exe», после компиляции?

                          да, в папке Release файл «test.exe» есть. От туда тоже не запускается. И удалить «test.exe» не получется. Пишет ошибку.

                          PM MAIL   Вверх
                          Rickert
                          Дата 20.1.2009, 10:38 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Ситхи не пройдут!
                          ****

                          Профиль
                          Группа: Комодератор
                          Сообщений: 3356
                          Регистрация: 11.7.2006
                          Где: Лакрима

                          Репутация: 0
                          Всего: 52

                          Так с ходу и не скажешь. Перезагрузи машину чтоли  smile 

                          ———————

                          Ни что не внушает сна крепче, чем день приисполненный трудов!

                          PM MAIL WWW Skype GTalk   Вверх
                          Dimkostav
                          Дата 20.1.2009, 11:43 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Цитата(Rickert @ 20.1.2009,  10:38)
                          Так с ходу и не скажешь. Перезагрузи машину чтоли  smile

                          Не, это не помогает

                          PM MAIL   Вверх
                          xvr
                          Дата 20.1.2009, 11:51 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Эксперт
                          ****

                          Профиль
                          Группа: Комодератор
                          Сообщений: 7046
                          Регистрация: 28.8.2007
                          Где: Химки, Московская обл

                          Репутация: 60
                          Всего: 223

                          Цитата(Dimkostav @ 20.1.2009,  10:30)
                          Цитата(Rickert @ 20.1.2009,  10:21)
                          Dimkostav, посмотри, в папке проекта, подпапке Release, есть файл «test.exe», после компиляции?

                          да, в папке Release файл «test.exe» есть. От туда тоже не запускается. И удалить «test.exe» не получется. Пишет ошибку.

                          Перезагрузи машину, затем удали test.exe. Если не получается — запусти проверку диска, похоже твой test.exe ‘немного’ битый  smile 

                          PM MAIL   Вверх
                          jonie
                          Дата 20.1.2009, 18:13 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Эксперт
                          ****

                          Профиль
                          Группа: Завсегдатай
                          Сообщений: 5613
                          Регистрация: 21.8.2005
                          Где: Владимир

                          Репутация: 15
                          Всего: 118

                          как вариант может быть он немного действительно занят (например антивирусом или вообще запущенный). есть тулза unlocker покажет лоченые хендлы…

                          ———————

                          Что-то не поняли? -> Напейтесь до зеленых человечков… эта сверхцивилизация Вам поможет…

                          PM MAIL Jabber   Вверх
                          Dimkostav
                          Дата 20.1.2009, 18:43 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Всем большое спасибо! Буду пробывать.

                          PM MAIL   Вверх
                          Dimkostav
                          Дата 21.1.2009, 10:34 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Не, не катит. Всё то же самое выдаёт… smile 
                          Пробывал и антивир отключать, и удалял экзешник после перезагрузки и всё то же…
                          После запуска экзешника появляется одноимённый процесс, поэтому потом не получается удалить. 

                          Это сообщение отредактировал(а) Dimkostav — 21.1.2009, 11:00

                          PM MAIL   Вверх
                          Lazin
                          Дата 21.1.2009, 11:06 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Эксперт
                          ****

                          Профиль
                          Группа: Завсегдатай
                          Сообщений: 3820
                          Регистрация: 11.12.2006
                          Где: paranoid oil empi re

                          Репутация: 41
                          Всего: 154

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

                          ———————

                          C++ is the steampunk of programming languages: modern ideas realized with victorian technology.

                          PM MAIL Skype GTalk   Вверх
                          Dimkostav
                          Дата 21.1.2009, 11:18 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Цитата(Lazin @ 21.1.2009,  11:06)
                          после запуска экзешников, иногда запускаются одноименные процессы, так-уж заведено, что-бы что-то делать с экзэшниом, нужно завершить одноименный процесс smile

                          Всё это ясно. Как сделать, что бы помимо процесса ещё и прогрмма запускалась?

                          PM MAIL   Вверх
                          xvr
                          Дата 21.1.2009, 12:16 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Эксперт
                          ****

                          Профиль
                          Группа: Комодератор
                          Сообщений: 7046
                          Регистрация: 28.8.2007
                          Где: Химки, Московская обл

                          Репутация: 60
                          Всего: 223

                          Цитата(Dimkostav @ 21.1.2009,  11:18)
                          Цитата(Lazin @ 21.1.2009,  11:06)
                          после запуска экзешников, иногда запускаются одноименные процессы, так-уж заведено, что-бы что-то делать с экзэшниом, нужно завершить одноименный процесс smile

                          Всё это ясно. Как сделать, что бы помимо процесса ещё и прогрмма запускалась?

                          Я открою тебе великую тайну — этот процесс и есть твоя программа  smile 
                          А еще я хочу донести до тебя откровение свыше — есть такая ВЕЩЬ, называется дебагер, с его помощью можно творить чудеса, например узнать, почему твой процесс так и не превратился в ‘программу’ (я так понимаю не появился GUI ?)  smile

                          PM MAIL   Вверх
                          Rickert
                          Дата 21.1.2009, 12:18 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Ситхи не пройдут!
                          ****

                          Профиль
                          Группа: Комодератор
                          Сообщений: 3356
                          Регистрация: 11.7.2006
                          Где: Лакрима

                          Репутация: 0
                          Всего: 52

                          xvr, у него эта бага в релиз версии.

                          ———————

                          Ни что не внушает сна крепче, чем день приисполненный трудов!

                          PM MAIL WWW Skype GTalk   Вверх
                          Dimkostav
                          Дата 21.1.2009, 12:23 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Цитата(xvr @ 21.1.2009,  12:16)
                          Цитата(Dimkostav @ 21.1.2009,  11:18)
                          Цитата(Lazin @ 21.1.2009,  11:06)
                          после запуска экзешников, иногда запускаются одноименные процессы, так-уж заведено, что-бы что-то делать с экзэшниом, нужно завершить одноименный процесс smile

                          Всё это ясно. Как сделать, что бы помимо процесса ещё и прогрмма запускалась?

                          Я открою тебе великую тайну — этот процесс и есть твоя программа  smile 
                          А еще я хочу донести до тебя откровение свыше — есть такая ВЕЩЬ, называется дебагер, с его помощью можно творить чудеса, например узнать, почему твой процесс так и не превратился в ‘программу’ (я так понимаю не появился GUI ?)  smile

                          да, GUI не появился, именно так… А процесс висит… Как тут может помочь дебаггер?

                          PM MAIL   Вверх
                          Lazin
                          Дата 21.1.2009, 12:24 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Эксперт
                          ****

                          Профиль
                          Группа: Завсегдатай
                          Сообщений: 3820
                          Регистрация: 11.12.2006
                          Где: paranoid oil empi re

                          Репутация: 41
                          Всего: 154

                          Цитата(Rickert @  21.1.2009,  12:18 Найти цитируемый пост)
                          xvr, у него эта бага в релиз версии

                          нигде не написано, что оно в дебаг версии работало

                          Добавлено через 49 секунд

                          Цитата(Dimkostav @  21.1.2009,  12:23 Найти цитируемый пост)
                          да, GUI не появился, именно так… А процесс висит… Как тут может помочь дебаггер?

                          Debug->Step Into
                          и вперед

                          ———————

                          C++ is the steampunk of programming languages: modern ideas realized with victorian technology.

                          PM MAIL Skype GTalk   Вверх
                          Dimkostav
                          Дата 21.1.2009, 12:48 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Запустил дебаггер. Жму F10 (Step Over). Застревает на строке:

                          0051C9CF call 00402 B90

                          Процесс висит.
                          А дальше-то что?

                          Это сообщение отредактировал(а) Dimkostav — 21.1.2009, 13:07

                          PM MAIL   Вверх
                          xvr
                          Дата 21.1.2009, 13:08 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Эксперт
                          ****

                          Профиль
                          Группа: Комодератор
                          Сообщений: 7046
                          Регистрация: 28.8.2007
                          Где: Химки, Московская обл

                          Репутация: 60
                          Всего: 223

                          Цитата(Dimkostav @ 21.1.2009,  12:48)
                          Запустил дебаггер. Жму F11 (Step Into). Застревает на строке:

                          7C902BB3       repe scas       dword ptr [edi]

                          А дальше-то что? Step Over? Step Out?

                          Сначала нужно откомпилить в Debug версии (Build->Set Active Configuration, F7)
                          Затем запустить (F5). Когда повиснет — прервать (Ctrl-Break, или через меню). Потом смотришь, где оно стоит и почему.

                          Да, перед тем, как прерывать, нужно убедится, что оно действительно зациклилось — процесс должен есть время CPU. Если у него около 0%, то скорее всего GUI просто не показывается и нужно смотреть исходные тексты инициализации.

                          PM MAIL   Вверх
                          vinter
                          Дата 21.1.2009, 13:14 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Explorer
                          ****

                          Профиль
                          Группа: Завсегдатай
                          Сообщений: 2735
                          Регистрация: 1.4.2006
                          Где: Н.Новгород

                          Репутация: 13
                          Всего: 56

                          Цитата(Rickert @  21.1.2009,  13:18 Найти цитируемый пост)
                          xvr, у него эта бага в релиз версии.

                          так никто же не мешает сменить цель

                          ———————

                          Мой блог

                          PM MAIL WWW   Вверх
                          Dimkostav
                          Дата 21.1.2009, 14:10 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Цитата(xvr @ 21.1.2009,  13:08)
                          Цитата(Dimkostav @ 21.1.2009,  12:48)
                          Запустил дебаггер. Жму F11 (Step Into). Застревает на строке:

                          7C902BB3       repe scas       dword ptr [edi]

                          А дальше-то что? Step Over? Step Out?

                          Сначала нужно откомпилить в Debug версии (Build->Set Active Configuration, F7)
                          Затем запустить (F5). Когда повиснет — прервать (Ctrl-Break, или через меню). Потом смотришь, где оно стоит и почему.

                          Да, перед тем, как прерывать, нужно убедится, что оно действительно зациклилось — процесс должен есть время CPU. Если у него около 0%, то скорее всего GUI просто не показывается и нужно смотреть исходные тексты инициализации.

                          Вот откомпилил в 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)

                          Что с этим-то делать? smile

                          Это сообщение отредактировал(а) Dimkostav — 21.1.2009, 14:12

                          PM MAIL   Вверх
                          SerpentVV
                          Дата 21.1.2009, 14:56 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Шустрый
                          *

                          Профиль
                          Группа: Участник
                          Сообщений: 52
                          Регистрация: 27.11.2006
                          Где: Астрахань

                          Репутация: 1
                          Всего: 1

                          А это похоже на то, что библиотека не подключена или как-то неправильно подключена. 
                          Или библиотека левая — линкер не находит объектных модулей указанных функций.  

                          PM MAIL   Вверх
                          Dimkostav
                          Дата 21.1.2009, 15:41 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Цитата(xvr @ 21.1.2009,  13:08)
                          Цитата(Dimkostav @ 21.1.2009,  12:48)
                          Запустил дебаггер. Жму F11 (Step Into). Застревает на строке:

                          7C902BB3       repe scas       dword ptr [edi]

                          А дальше-то что? Step Over? Step Out?

                          Сначала нужно откомпилить в Debug версии (Build->Set Active Configuration, F7)
                          Затем запустить (F5). Когда повиснет — прервать (Ctrl-Break, или через меню). Потом смотришь, где оно стоит и почему.

                          Да, перед тем, как прерывать, нужно убедится, что оно действительно зациклилось — процесс должен есть время CPU. Если у него около 0%, то скорее всего GUI просто не показывается и нужно смотреть исходные тексты инициализации.

                          Ну а может вместо этого аццкого дебагинка и проблемм с билиотеками посмотреть тексты инициализации? Потому что при компиляции в Release загрузка цп на процессе «test.exe» 0%.
                          Подскажи пожалуйста, куды именно смотреть, что искать? Код-то я не руками пока писал, его DialogBlocks сгенерировал…
                          Тут конечно есть ещё один warning C4005: ‘ID_LISTCTRL1’ : macro redefination. При том, что этот ListCtrl должен быть на самой первой форме. Как думаете, из-за него что ли может не появляться весь GUI?

                          Это сообщение отредактировал(а) Dimkostav — 21.1.2009, 15:53

                          PM MAIL   Вверх
                          xvr
                          Дата 21.1.2009, 18:53 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Эксперт
                          ****

                          Профиль
                          Группа: Комодератор
                          Сообщений: 7046
                          Регистрация: 28.8.2007
                          Где: Химки, Московская обл

                          Репутация: 60
                          Всего: 223

                          Спроси тут http://forum.vingrad.ru/forum/c-c++QT-gtk-wxWidgets.html

                          PM MAIL   Вверх
                          Dimkostav
                          Дата 21.1.2009, 19:00 (ссылка)
                          | (нет голосов)
                          Загрузка ... Загрузка …




                          Быстрая цитата

                          Цитата

                          Новичок

                          Профиль
                          Группа: Участник
                          Сообщений: 27
                          Регистрация: 20.1.2009

                          Репутация: нет
                          Всего: нет

                          Всем большое спасибо! Многое извлёк из этой проблеммы. Буду разбираться дальше smile 

                          PM MAIL   Вверх
                          0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей) 0 Пользователей: « Предыдущая тема | C/C++: Общие вопросы | Следующая тема »

                          RRS feed

                          • 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:

                            1. External .cpp files
                            2. That in your Linker –> Input –> Additional Dependencies settings, there’s no blank library like «.» or «$(INHERIT)»


                          Понравилась статья? Поделить с друзьями:

                          Читайте также:

                        • Cannot open clipboard как исправить
                        • Cannot locate the microsoft visual foxpro support library windows 10 как исправить
                        • Cannot locate java installation in specified jdkhome netbeans как исправить
                        • Cannot locate basic info data как исправить
                        • Cannot load steamapi как исправить

                        • 0 0 голоса
                          Рейтинг статьи
                          Подписаться
                          Уведомить о
                          guest

                          0 комментариев
                          Старые
                          Новые Популярные
                          Межтекстовые Отзывы
                          Посмотреть все комментарии