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
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
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.
- Start the TargetRTS Wizard and choose the Target for which you are building
- Click Build
- On the Build Configuration menu, select the appropriate
makecommand for your target and compilerNote:
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
makecommand.
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 |
|
Форумчанин 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 |
|
Форумчанин 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 |
|
либо кладите куда нужно Положил файл ntwin32.mak в папку с решением, попытался скомпилировать — получил те же ошибки. Положил файл ntwin32.mak во ВСЕ папки, что есть в решении, попытался скомпилировать — получил те же ошибки.
0 |
|
8719 / 4299 / 958 Регистрация: 15.11.2014 Сообщений: 9,744 |
|
|
31.10.2016, 23:52 |
6 |
|
Архив с решением прилагаю. 9 мегабайт. Добавлено через 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). похоже, что даже при сборке более поздними студиями, Добавлено через 1 минуту
0 |
|
3433 / 2812 / 1249 Регистрация: 29.01.2016 Сообщений: 9,426 |
|
|
01.11.2016, 02:11 |
7 |
|
Положил файл ntwin32.mak в папку с решением, попытался скомпилировать — получил те же ошибки. Положил файл ntwin32.mak во ВСЕ папки, что есть в решении, попытался скомпилировать — получил те же ошибки. В свойствах проекта IDL (каталоги включения) пропиши путь к нему в Microsoft SDKs.
0 |
|
0 / 0 / 1 Регистрация: 02.02.2016 Сообщений: 31 |
|
|
05.11.2016, 23:14 [ТС] |
8 |
|
9 мегабайт.
либо кладите куда нужно
Положил файл ntwin32.mak в папку с решением, попытался скомпилировать — получил те же ошибки. Положил файл ntwin32.mak во ВСЕ папки, что есть в решении, попытался скомпилировать — получил те же ошибки. hoggy, читать-то умеете? И по голове себе лучше постучите.
В свойствах проекта IDL (каталоги включения) пропиши путь к нему в Microsoft SDKs. nd2, Файл на компьютере расположен тут: C:Program Files (x86)Microsoft SDKsWindowsv7.1AIncludeNtWin32.Mak
0 |
|
3433 / 2812 / 1249 Регистрация: 29.01.2016 Сообщений: 9,426 |
|
|
05.11.2016, 23:24 |
9 |
|
В Свойства проекта -> Каталоги VC++ В свойствах IDL? Попробуй не в Каталогах VC++ прописать, а в С++ — Общие — Дополнительные каталоги включаемых файлов. После этого, у меня, эта ошибка пропадала (правда, появлялись другие, следующие). Добавлено через 1 минуту
0 |
|
0 / 0 / 1 Регистрация: 02.02.2016 Сообщений: 31 |
|
|
05.11.2016, 23:26 [ТС] |
10 |
|
nd2, глупый вопрос, но где находятся
С++ — Общие — Дополнительные каталоги включаемых файлов ? Миниатюры
0 |
|
3433 / 2812 / 1249 Регистрация: 29.01.2016 Сообщений: 9,426 |
|
|
05.11.2016, 23:31 |
11 |
|
глупый вопрос, но где находятся За время твоего отсутствия, я уже эту тему подзабыл. Нужно в проекте смотреть, где я прописывал. Попробуй пока прописать там же, где и делал, но:
не нужно сам файл указывать, когда прописываешь, только папку, где он лежит.
0 |
|
gosha2016 0 / 0 / 1 Регистрация: 02.02.2016 Сообщений: 31 |
||||
|
05.11.2016, 23:33 [ТС] |
12 |
|||
|
И не нужно сам файл указывать, когда прописываешь, только папку, где он лежит. Убрал сам файл в конце пути, получил вот что:
И, кстати, как можно избавиться от кракозябров в выводе компилятора? Добавлено через 1 минуту
За время твоего отсутствия Виноват, дел было невпроворот, а тут ещё и этот бред по DCOM…
0 |
|
3433 / 2812 / 1249 Регистрация: 29.01.2016 Сообщений: 9,426 |
|
|
05.11.2016, 23:35 |
13 |
|
Убрал сам файл в конце пути, получил вот что: Вот об этом я и писал:
После этого, у меня, эта ошибка пропадала (правда, появлялись другие, следующие).
0 |
|
gosha2016 0 / 0 / 1 Регистрация: 02.02.2016 Сообщений: 31 |
||||
|
05.11.2016, 23:50 [ТС] |
14 |
|||
|
Вот об этом я и писал: Собственно, самих ошибок там всего 3:
Последняя из них — как была раньше, так и осталась
0 |
|
0 / 0 / 1 Регистрация: 02.02.2016 Сообщений: 31 |
|
|
07.11.2016, 05:21 [ТС] |
15 |
|
Может кто-нибудь сможет подсказать, как исправить проблему?
0 |




