Fatal error u1052

I'm trying to do the steps as mentioned in Install pdcurses on Visual Studio 2017, which tells me to boot up the Developer Command Prompt for my VS(2019), and write set PDCURSES_SRCDIR=D:PDCurses-...

I’m trying to do the steps as mentioned in Install pdcurses on Visual Studio 2017, which tells me to boot up the Developer Command Prompt for my VS(2019), and write
set PDCURSES_SRCDIR=D:PDCurses-3.9PDCurses-3.9(my path for PDCurses) but I was stuck at step 2:

Navigate in the command window to the directory of PDCurses/wincon*
nmake –f Makefile.vc*
(This is the make file for PDCurses.) It will create the pdcurses.lib for our Visual Studio.

What I then typed into my command prompt:

C:Program Files (x86)Microsoft Visual Studio2019Community>nmake -f Makefile.vc

What I received:

Microsoft (R) Program Maintenance Utility Version 14.20.27508.1
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1052: file 'Makefile.vc' not found
Stop.

I’m really confused as to why this is happening. I’ve been trying to search and only found these:

  • https://github.com/blackrosezy/build-libcurl-windows/issues/19

  • How to download, build and include PDCurses in Visual Studio 2019 for C++ on Windows (wants me to input the commands in the Native Tools Command Prompt, not the Developer Command Prompt. Any difference?)

both links mention a .bat file. Where do I find this file?

Thanks to anyone who can help!

*: modified from original source for updating purposes

asked Oct 24, 2020 at 17:00

Rainier's user avatar

2

C:Program Files (x86)Microsoft Visual Studio2019Community>nmake -f Makefile.vc

This is running nmake in the wrong directory, causing the file 'Makefile.vc' not found error.

The nmake command must be run in «the directory of PDCurses/wincon» as mentioned in a previous step. Assuming PDCURSES_SRCDIR has been set already, this can be done with a cd before nmake.

C:Program Files (x86)Microsoft Visual Studio2019Community>cd /d %PDCURSES_SRCDIR%wincon

D:PDCurses-3.9PDCurses-3.9wincon>nmake -f Makefile.vc

answered Oct 25, 2020 at 1:39

dxiv's user avatar

dxivdxiv

16.6k2 gold badges25 silver badges48 bronze badges

I am self-coaching myself VC++.

I don’t get it error. Could someone tell me where I went wrong? Much appreciated. Thanks in advance.

Header file:

#ifndef Date_dot_h
#define Date_dot_h 1

// Address class using dynamically-allocated strings

class date {
protected:
 int year_;
 int month_;
 int day_;
public:
 date();
 date(const int& d, const int& m, const int& y);

 bool valid() const;

 int day() const;
 int month() const;
 int year() const;

 void set_day (const int& day);
 void set_month (const int& month);
 void set_year (const int& year);

 date operator++();
 date operator++(int);
 date operator—();
 date operator—(int);
};

bool operator == (const date&, const date&);
bool operator != (const date&, const date&);
bool operator < (const date&, const date&);
bool operator > (const date&, const date&);
bool operator <= (const date&, const date&);
bool operator >= (const date&, const date&);

#endif // Date_dot_h
————————————————-

Date.cpp

#include <cstring>

#ifdef _MSC_VER
// This definition is needed for the Microsoft 6.0 compiler, which
// doesn’t put strcpy into namespace std.
/*namespace std {
  char* strcpy(char *s1, const char* s2) { return ::strcpy(s1, s2); }
}*/
#endif

// date.cpp: implementation of the date class.
//
//////////////////////////////////////////////////////////////////////

#include «date.h»

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

date::date() {year_ = 0;  month_ = 0; day_ = 0;};

date::date(const int& day, const int& month, const int& year) {
 day_ = day;
 month_ = month;
 year_ = year;
};

int date::day() const { return day_; };
int date::month() const { return month_; };
int date::year() const { return year_; };

void date::set_day (const int& day) { date::day_ = day;};
void date::set_month (const int& month) { date::month_ = month;};
void date::set_year (const int& year) { date::year_ = year;};

bool date::valid() const {
 if (year_ < 0)
  return false;
 if (month_ > 12 || month_ < 1)
  return false;
 if (day_ > 31 || day_ <1)
  return false;
 if ((day_ == 31 && (month_ == 2|| month_ == 4 ||
  month_==6||month_==9||month_==11)))
  return false;
 if (day_ == 30 && month_ == 2)
  return false;
 return true;
};

Article: Q133249
Product(s): Microsoft C Compiler
Version(s): 2.2
Operating System(s): 
Keyword(s): kbsetup kbVC500fix
Last Modified: 30-JUL-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual C++, version 2.2 
-------------------------------------------------------------------------------

SYMPTOMS
========

When invoking NMAKE on some of the make files that are distributed with the
Win32 samples, you may encounter an error message similar to this one:

  c:msvc20includentwin32.mak(3) : fatal error U1052: file 'win32.mak' not
  found.

The problem is a result of the following command:

     NMAKE MAKEFILE<Enter>

CAUSE
=====

This is caused by the Visual C++ setup program failing to copy WIN32.MAK to your
INCLUDE directory.

RESOLUTION
==========

Copy WIN32.MAK from the MSVC20INCLUDE directory on the Visual C++ installation
CD to your INCLUDE directory.

STATUS
======

Microsoft has confirmed this to be a bug in the Microsoft products listed at the
beginning of this article. This bug was corrected in Visual C++ version 5.0.

MORE INFORMATION
================

The Win32 samples that encounter this error are:

  IOSTUTOR,
  NAMPIPENPCLIENT and,
  NAMPIPENPSERVER

Additional query words: Windows 95

======================================================================
Keywords          : kbsetup kbVC500fix 
Technology        : kbVCsearch kbAudDeveloper kbVC220
Version           : :2.2
Issue type        : kbbug
Solution Type     : kbfix

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
PROVIDED «AS IS» WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO
EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION
OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.

Problem

Attempts to build a Target RTS using IBM Rational Rose Realtime on Microsoft Windows results in a build failure with the error «NMAKE : fatal error U1077: ‘rtperl’ : return code ‘0x200’ Stop.»

Symptom

The full error message is as follows:

../src/main.mk(43) : fatal error U1052: file '$(RTS_HOME)/libset/default.mk' not found
Stop.

NMAKE : fatal error U1077: 'rtperl' : return code '0x200'
Stop.

image

Cause

The build will fail with this error if you are attempting to build a Target RTS using nmake for a target other than Windows.

Resolving The Problem

Select the make command appropriate for your compiler when building the Target RTS.

  1. Start the TargetRTS Wizard and choose the Target for which you are building
  2. Click Build
  3. On the Build Configuration menu, select the appropriate make command for your target and compiler

    Note:

    Nmake is the default selected make command for Rational Rose RealTime on Windows. If you are building for a Linux, UNIX, Tornado or other non-Windows platform, then you will need to select the appropriate make command.

Related Information

[{«Product»:{«code»:»SSSHKL»,»label»:»Rational Rose RealTime»},»Business Unit»:{«code»:»BU053″,»label»:»Cloud & Data Platform»},»Component»:»TargetRTS»,»Platform»:[{«code»:»PF033″,»label»:»Windows»}],»Version»:»7.0;7.0.0.1″,»Edition»:»»,»Line of Business»:{«code»:»LOB45″,»label»:»Automation»}}]

0 / 0 / 1

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

Сообщений: 31

1

31.10.2016, 00:16. Показов 4787. Ответов 14


Здравствуйте! Подскажите, пожалуйста, как исправить ошибки fatal error U1052 и error MSB3073 при компиляции решения в MSVS 2012.
Компилятор выдаёт такой текст:

Код

1>------ Построение начато: проект: IDL, Конфигурация: Debug Win32 ------
1>  
1>  ╤ыєцхсэр* яЁюуЁрььр юсёыєцштрэш* яЁюуЁрьь Microsoft (R), тхЁёш* 11.00.61030.0
1>  (C) ╩юЁяюЁрЎш* ╠рщъЁюёюЇЄ (Microsoft Corporation). ┬ёх яЁртр чр∙ш∙хэ√.
1>  
1>MAKEFILE.mak(1): fatal error U1052: эх эрщфхэ Їрщы "ntwin32.mak"
1>  Stop.
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V110Microsoft.MakeFile.Targets(38,5): error MSB3073: выход из команды "nmake –f  MAKEFILE.mak" с кодом 2.
========== Построение: успешно: 0, с ошибками: 1, без изменений: 2, пропущено: 0 ==========

Архив с решением прилагаю.

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



0



Форумчанин

Эксперт CЭксперт С++

8193 / 5043 / 1437

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

Сообщений: 13,453

31.10.2016, 00:20

2

Скорее всего, где-то не хватает прав.

Добавлено через 38 секунд
Попробуйте запустить студию под админом.



0



0 / 0 / 1

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

Сообщений: 31

31.10.2016, 00:23

 [ТС]

3

MrGluck, попробовал. Результат — тот же самый.



0



Форумчанин

Эксперт CЭксперт С++

8193 / 5043 / 1437

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

Сообщений: 13,453

31.10.2016, 10:39

4

эх эрщфхэ Їрщы => не найден файл.

Очевидно, что не хватает нужного файла ntwin32.mak
Смотрите где он требуется и либо меняйте вызов, либо кладите куда нужно.



0



0 / 0 / 1

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

Сообщений: 31

31.10.2016, 23:21

 [ТС]

5

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

либо кладите куда нужно

Положил файл ntwin32.mak в папку с решением, попытался скомпилировать — получил те же ошибки. Положил файл ntwin32.mak во ВСЕ папки, что есть в решении, попытался скомпилировать — получил те же ошибки.



0



Эксперт С++

8719 / 4299 / 958

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

Сообщений: 9,744

31.10.2016, 23:52

6

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

Архив с решением прилагаю.

9 мегабайт.
нафига вы выложили его вместе со всеми обжами, пдбешками, и прочим сборочным мусором?
это при том, что файл ntwin32.mak в архиве отсутствует.

Добавлено через 7 минут

The reason for this error is the fact that a required file — NTWIN32.MAK is not present in the Microsoft Software Development Kit (SDK). In order to resolve the issue, re-install the SDK. The file should be found in the «Include» folder in the SDK (for example, under C:Program FilesMicrosoft SDKsWindowsv7Include).

похоже, что даже при сборке более поздними студиями,
оно хочет, что б на борту стояла 2008 студия.
попробуйте закатать файл NTWIN32.MAK в каталог C:Program FilesMicrosoft SDKsWindowsv7Include
есть маленькая вероятность, что это сработает.

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



0



3433 / 2812 / 1249

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

Сообщений: 9,426

01.11.2016, 02:11

7

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

Положил файл ntwin32.mak в папку с решением, попытался скомпилировать — получил те же ошибки. Положил файл ntwin32.mak во ВСЕ папки, что есть в решении, попытался скомпилировать — получил те же ошибки.

В свойствах проекта IDL (каталоги включения) пропиши путь к нему в Microsoft SDKs.



0



0 / 0 / 1

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

Сообщений: 31

05.11.2016, 23:14

 [ТС]

8

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

9 мегабайт.
нафига вы выложили его вместе со всеми обжами, пдбешками, и прочим сборочным мусором?
это при том, что файл ntwin32.mak в архиве отсутствует.

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

либо кладите куда нужно

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

Положил файл ntwin32.mak в папку с решением, попытался скомпилировать — получил те же ошибки. Положил файл ntwin32.mak во ВСЕ папки, что есть в решении, попытался скомпилировать — получил те же ошибки.

hoggy, читать-то умеете? И по голове себе лучше постучите.

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

В свойствах проекта IDL (каталоги включения) пропиши путь к нему в Microsoft SDKs.

nd2, Файл на компьютере расположен тут: C:Program Files (x86)Microsoft SDKsWindowsv7.1AIncludeNtWin32.Mak
В Свойства проекта -> Каталоги VC++ -> Каталоги включения дописал этот путь. Получилось вот так: $(VCInstallDir)include;$(VCInstallDir)atlmfcinclu de;$(WindowsSDK_IncludePath);C:Program Files (x86)Microsoft SDKsWindowsv7.1AIncludeNtWin32.Mak
Скомпилировал проект, получил те же самые ошибки.



0



3433 / 2812 / 1249

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

Сообщений: 9,426

05.11.2016, 23:24

9

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

В Свойства проекта -> Каталоги VC++

В свойствах IDL? Попробуй не в Каталогах VC++ прописать, а в С++ — Общие — Дополнительные каталоги включаемых файлов. После этого, у меня, эта ошибка пропадала (правда, появлялись другие, следующие).

Добавлено через 1 минуту
И не нужно сам файл указывать, когда прописываешь, только папку, где он лежит.



0



0 / 0 / 1

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

Сообщений: 31

05.11.2016, 23:26

 [ТС]

10

nd2, глупый вопрос, но где находятся

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

С++ — Общие — Дополнительные каталоги включаемых файлов

?
Я у себя вижу только:

Миниатюры

Ошибки fatal error U1052 и error MSB3073
 



0



3433 / 2812 / 1249

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

Сообщений: 9,426

05.11.2016, 23:31

11

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

глупый вопрос, но где находятся

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

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

не нужно сам файл указывать, когда прописываешь, только папку, где он лежит.



0



gosha2016

0 / 0 / 1

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

Сообщений: 31

05.11.2016, 23:33

 [ТС]

12

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

И не нужно сам файл указывать, когда прописываешь, только папку, где он лежит.

Убрал сам файл в конце пути, получил вот что:

C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1>------ Построение начато: проект: IDL, Конфигурация: Debug Win32 ------
1>  
1>  ╤ыєцхсэр* яЁюуЁрььр юсёыєцштрэш* яЁюуЁрьь Microsoft (R), тхЁёш* 11.00.61030.0
1>  (C) ╩юЁяюЁрЎш* ╠рщъЁюёюЇЄ (Microsoft Corporation). ┬ёх яЁртр чр∙ш∙хэ√.
1>  
1>      link /DEBUG /DEBUGTYPE:cv -DLL -OUT:ServerDcom.dll -DEF:ServerDcom.def  ServerDcom_p.obj ServerDcom_i.obj dlldata.obj rpcrt4.lib uuid.lib kernel32.lib
1>  Microsoft (R) Incremental Linker Version 11.00.61030.0
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>  
1>ServerDcom.def(3): warning LNK4017: юяхЁрЄюЁ DESCRIPTION эх яюффхЁцштрхЄё* эр ъюэхўэющ яырЄЇюЁьх; яЁюяє∙хэ
1>ServerDcom.def : warning LNK4222: ¤ъёяюЁЄшЁютрээюьє ёшьтюыє "DllGetClassObject" эх ёыхфєхЄ яЁшётрштрЄ№ яюЁ*фъютюх ўшёыю
1>ServerDcom.def : warning LNK4222: ¤ъёяюЁЄшЁютрээюьє ёшьтюыє "DllCanUnloadNow" эх ёыхфєхЄ яЁшётрштрЄ№ яюЁ*фъютюх ўшёыю
1>ServerDcom.def : warning LNK4222: ¤ъёяюЁЄшЁютрээюьє ёшьтюыє "DllRegisterServer" эх ёыхфєхЄ яЁшётрштрЄ№ яюЁ*фъютюх ўшёыю
1>ServerDcom.def : warning LNK4222: ¤ъёяюЁЄшЁютрээюьє ёшьтюыє "DllUnregisterServer" эх ёыхфєхЄ яЁшётрштрЄ№ яюЁ*фъютюх ўшёыю
1>     ╤ючфрхЄё* сшсышюЄхър ServerDcom.lib ш юс·хъЄ ServerDcom.exp
1>LINK : fatal error LNK1207: эхёютьхёЄшь√щ ЇюЁьрЄ PDB т "C:Usersuser1DocumentsVisual Studio 2012ProjectsServerDcomServerDcomServerDcom.pdb"; єфрышЄх ш яхЁхёЄЁющЄх
1>NMAKE : fatal error U1077: "C:Program Files (x86)Microsoft Visual Studio 11.0VCbinlink.EXE" : тючтЁр∙хээ√щ ъюф "0x4b7"
1>  Stop.
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V110Microsoft.MakeFile.Targets(38,5): error MSB3073: выход из команды "nmake –f  MAKEFILE.mak" с кодом 2.
========== Построение: успешно: 0, с ошибками: 1, без изменений: 2, пропущено: 0 ==========

И, кстати, как можно избавиться от кракозябров в выводе компилятора?

Добавлено через 1 минуту

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

За время твоего отсутствия

Виноват, дел было невпроворот, а тут ещё и этот бред по DCOM…



0



3433 / 2812 / 1249

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

Сообщений: 9,426

05.11.2016, 23:35

13

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

Убрал сам файл в конце пути, получил вот что:

Вот об этом я и писал:

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

После этого, у меня, эта ошибка пропадала (правда, появлялись другие, следующие).



0



gosha2016

0 / 0 / 1

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

Сообщений: 31

05.11.2016, 23:50

 [ТС]

14

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

Вот об этом я и писал:

Собственно, самих ошибок там всего 3:

C++
1
2
3
1>LINK : fatal error LNK1207: эхёютьхёЄшьв€љщ ЇюЁьрЄ PDB т "C:Usersuser1DocumentsVisual Studio 2012ProjectsServerDcomServerDcomServerDcom.pdb"; єфрышЄх ш яхЁхёЄЁющЄх
1>NMAKE : fatal error U1077: "C:Program Files (x86)Microsoft Visual Studio 11.0VCbinlink.EXE" : тючтЁрв€™хээв€љщ ъюф "0x4b7"
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V110Microsoft.MakeFile.Targets(38,5): error MSB3073: выход из команды "nmake –f  MAKEFILE.mak" с кодом 2.

Последняя из них — как была раньше, так и осталась



0



0 / 0 / 1

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

Сообщений: 31

07.11.2016, 05:21

 [ТС]

15

Может кто-нибудь сможет подсказать, как исправить проблему?



0



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

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

  • Fatal error the forest
  • Fatal error the dynamic library rld dll failed to load please confirm that симс средневековье
  • Fatal error the dynamic library rld dll failed to load fifa 13
  • Fatal error occurred omsi will be closed
  • Fatal error the dynamic library rld dll failed to load crysis 3

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

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