1

Topic: It is not compiled Release an exe.-file

I have decision MySolution in the form of a dialogue interface window which I compiled and created Debug a.exe-file. This file is normally launched as from a development environment of a Visual Studio 2012, and is independent. Decision MySolution shares on projects MyProject1, MyProject2..., MyProjectN. But I decided to create on the basis of this decision as well Release an exe.-file. For this purpose I in a development environment window in Debugging - Properties MySolution - Properties of a configuration delivered "Active (Release)". After that I rebuilt my decision. As a result at me errors were highlighted: 1) in various.h-files and.cpp-files there were errors: error C1083: it is not possible to open a file switching-on: MyProject1\file1.h error C1083: it is not possible to open a file switching-on: MyProject2\file2.h... error C1083: it is not possible to open a file switching-on: MyProjectN\fileN.h 2) in a file afxv_w32.h: error C1189: #error: WINDOWS.H already included. MFC apps must not #include <windows.h> is in a file afxv_w32.h in line: #ifdef _WINDOWS_ #error WINDOWS.H already included. MFC apps must not #include <windows.h> #endif That it means? How to rectify an error - how to make so that Release a.exe-file was compiled and gathered?

2

Re: It is not compiled Release an exe.-file

Hello, RussianFellow, you wrote: RF> As a result at me errors were highlighted: RF> 1) in various.h-files and.cpp-files there were errors: RF> RF> error C1083: it is not possible to open a file switching-on: RF> MyProject1\file1.h Here, seemingly, in the project of adjustment of ways INCLUDE for Debug and Release configurations the different. RF> 2) in a file afxv_w32.h: RF> RF> error C1189: #error: WINDOWS.H already included. MFC apps must not #include <windows.h> And here it is an ambush. Happened such. Somewhere in the code the line of a type #include <Windows.h>, and  with the directive #ifndef _DEBUG the Most sad crept in that approximately 400  heading files contain this "#include <Windows.h>". Here only a method "national ". To look at what compilation of a file there is a detection that is connected Windows.h and to begin in heading and a file of source codes methodically  include', to look then an error disappears. Probably it is necessary also a code part in these files  that error messages was less. And that likes the compiler to produce "too many errors, compilation is stopped". It is possible, of course, temporarily and file Windows.h to correct, adding in the beginning "#error Got you!". But, I am afraid, somewhere in the depths MFC quite can  Windows.h

3

Re: It is not compiled Release an exe.-file

Hello, RussianFellow, you wrote: You spend too much time for the interface and the decision of problems with kompiljatsej/assemblage. To pass on C# + WinForms easier. Will create the interface conveniently as on Delphi, and the code of calculations on a C ++ will differ from the similar code a little (regarding expressions and the main language operators).