Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > .NET для новичков > Ощибка при компиляции


Автор: Sergio 27.7.2007, 16:50
Здраствуйте. Скачал с нета пример программы. При компиляции выбивает ошибка:
Цитата

1>LINK : fatal error LNK1104: cannot open file 'D:\Program.obj'

В чём проблема?

Автор: Sergio 27.7.2007, 18:15
У меня теперь другая ошибка:
Цитата

1>Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'.

Что это может значить?

Автор: mr.DUDA 28.7.2007, 10:02
Build event-ы для проекта настраивали ? Проверьте, что там. К слову, в MSDN есть описания каждой ошибки, на тот же PRJ0002 выдаёт:
Цитата
A command, command line, which was formed from user input in the Property Pages dialog box, returned an error code but no information will appear in the Output window.

The resolution to this error depends on which tool generated the error. For MIDL, you will get an idea of what went wrong if /o (Redirect Output) is defined. 

A batch file, such as a custom build step or build event, that is not informative about failure conditions could also be the reason for this error. 

To resolve this error, be more informative on error conditions.

Автор: Sergio 28.7.2007, 23:40
mr.DUDA, нескромный вопрос... Что такое Build event-ы??
Вот полный код ошибки:
Цитата

------ Build started: Project: QTCreateMovie, Configuration: Debug Win32 ------
Linking...
LINK : .\Debug/QTCreateMovie.exe not found or not built by the last incremental link; performing full link
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
embed 'snd ' resource into application
Системе не удается найти указанный путь.
Не удается найти указанный файл.
Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'.
Build log was saved at "file://c:\Documents and Settings\rer\Рабочий стол\QT tutorials\qtcreatemovie.win\qtcreatemovie.win\Debug\BuildLog.htm"
QTCreateMovie - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

А то что-то я читал хелп и ничего не понял. В чём проблема и как её решить smile 

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)