MFC 1.3 · Шаг 3. Сборка в Visual Studio
Что будет сделано на этой странице. Вы откроете в Visual Studio 2026 общее решение
src\tamic.slnx, выберете конфигурацию (Release или Debug) и платформу (x64 или Win32),
соберёте все 12 проектов одной командой и найдёте готовые программы. В конце — как собрать
сразу все четыре сочетания и как запустить программу из Visual Studio.
Перед этим шагом должны быть выполнены шаг 1 (Visual Studio с MFC) и
шаг 2 (исходники в C:\src\TMC_Suite).
Ничего настраивать в проектах не нужно: пути к заголовкам, библиотекам и папкам результатов уже заданы общими файлами
build\Common.props,build\LibOutput.props,build\ExeOutput.props, подключёнными ко всем проектам. Порядок сборки (сначала библиотеки, потом программы) решение задаёт само. Дополнительные макросы для X-моды тоже не нужны — в версии 1.3 они определены в общих заголовках.
3.1 Откройте решение
- Запустите Visual Studio 2026 из меню «Пуск».
-
В стартовом окне нажмите «Открыть проект или решение» (Open a project or solution).
Если стартового окна нет (Visual Studio уже открыта), выберите в меню Файл → Открыть → Проект или решение… (File → Open → Project/Solution…), сочетание клавиш Ctrl+Shift+O.
-
В окне выбора файла перейдите в папку
C:\src\TMC_Suite\src, выделите файлtamic.slnxи нажмите «Открыть» (Open).Открывайте именно
tamic.slnxв папкеsrc, а не отдельные файлы.vcxproj: только решение знает, в каком порядке собирать проекты. -
Подождите, пока Visual Studio загрузит проекты (внизу окна, в строке состояния, перестанет крутиться индикатор). Первое открытие занимает до минуты: среда строит базу IntelliSense.
-
Откройте Обозреватель решений (Solution Explorer), если он не открыт: Вид → Обозреватель решений (View → Solution Explorer), Ctrl+Alt+L. В нём должна быть строка решения
tamicс 12 проектами из 12 (Solution 'tamic' (12 of 12 projects)):complex,exprint,FldView,PlanRT_H,PlanRT_X,Prepr,SFILE95,TMC_DN,TMCGROUT,TMCIndan,TMCLibError,TMCROS.Если у какого-то проекта написано «(не загружено)» / «(unloaded)» или «(несовместимо)» / «(incompatible)» — см. шаг 7.
3.2 Выберите конфигурацию и платформу
На панели инструментов под меню есть два выпадающих списка рядом с зелёной кнопкой запуска:

- Левый список — конфигурация (Solution Configurations):
Release— выпуск: оптимизированные программы, которые раздаются пользователям. Выбирайте его, если не знаете, что выбрать.Debug— отладочная сборка: программы медленнее и больше, нужны для поиска ошибок в отладчике.
- Правый список — платформа (Solution Platforms):
x64— 64-битные программы (результат вdist\win64\…). Рекомендуется для современных компьютеров и больших расчётов; расчёт на видеокарте (/GPU) есть только в 64-битной версии.Win32— 32-битные программы (результат вdist\win32\…). Нужны для 32-битной Windows.
Других платформ в решении нет. Пункты вроде ARM64 или Any CPU в списке быть не должны.
Для первого раза выберите Release и x64.
3.3 Соберите решение
-
Откройте меню Сборка (Build).

Меню «Сборка» -
Выберите «Пересобрать решение» (Rebuild Solution) — для первой сборки или после скачивания новой версии исходников. Для повторных сборок после мелких правок достаточно «Собрать решение» (Build Solution), Ctrl+Shift+B: оно пересобирает только изменённое.
- Откроется окно Вывод (Output) с ходом сборки. Если оно не открылось: Вид → Вывод (View → Output), Ctrl+Alt+O; в списке «Показать выходные данные из:» (Show output from:) выберите «Сборка» (Build).
-
Дождитесь последней строки. При успехе она выглядит так (в русском интерфейсе — те же числа русскими словами):
========== Rebuild All: 12 succeeded, 0 failed, 0 skipped ==========При «Собрать решение» строка начинается с
Build:и содержит ещё счётчикup-to-date(уже актуальных проектов). Главное —12 succeeded(или «успешно: 12») и0 failed(«с ошибками: 0»). -
Откройте Список ошибок (Error List): Вид → Список ошибок (View → Error List). Должно быть 0 ошибок и 0 предупреждений (кнопки-фильтры вверху окна показывают
0 Errors,0 Warnings). Версия 1.3 собирается без предупреждений во всех четырёх конфигурациях — это проверено.
Сколько ждать. Замер (компьютер с 6-ядерным процессором Intel Core i5-9600KF, 64 ГБ памяти, полная пересборка одной конфигурации): около 20–25 секунд. Visual Studio по умолчанию собирает несколько проектов параллельно. На медленном компьютере — до нескольких минут.
Какие строки в окне «Вывод» — не ошибки
_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)— справочное сообщение заголовков MFC, не предупреждение. Его печатают проекты, использующие MFC; на результат не влияет.Создание кода...(Generating Code...) — компилятор оптимизирует программу, это нормально.- Строки вида
complex.vcxproj -> C:\src\TMC_Suite\dist\win64\lib\complex.lib— сообщают, куда положен готовый файл.
3.4 Где результат
Готовые файлы кладутся не в папки проектов, а в общую папку dist в корне проекта:
| Конфигурация | Платформа | Программы (6 × .exe) |
Библиотеки (6 × .lib) |
|---|---|---|---|
| Release | x64 | C:\src\TMC_Suite\dist\win64\bin\ |
C:\src\TMC_Suite\dist\win64\lib\ |
| Release | Win32 | C:\src\TMC_Suite\dist\win32\bin\ |
C:\src\TMC_Suite\dist\win32\lib\ |
| Debug | x64 | C:\src\TMC_Suite\dist\win64\debug\bin\ |
C:\src\TMC_Suite\dist\win64\debug\lib\ |
| Debug | Win32 | C:\src\TMC_Suite\dist\win32\debug\bin\ |
C:\src\TMC_Suite\dist\win32\debug\lib\ |
Промежуточные файлы (.obj, .pch и т. п.) — в C:\src\TMC_Suite\build\obj\<платформа>\<конфигурация>\<проект>\.
Их можно удалять: при следующей сборке они создадутся заново.
В папке bin после сборки Release x64 должны лежать 6 программ (рядом с каждой — файл
.pdb с отладочной информацией, он для работы не нужен):
FieldView.exe TMC_DN.exe TMCGROUT.exe TMCROS.exe tmc_rth.exe tmc_rtx.exe
Подробная проверка всех файлов и размеров — на шаге 5.

Чтобы открыть папку из Visual Studio: в Обозревателе решений щёлкните правой кнопкой по
решению tamic → «Открыть папку в проводнике» (Open Folder in File Explorer) — откроется
C:\src\TMC_Suite\src; поднимитесь на уровень выше и откройте dist.
3.5 Собрать все четыре сочетания сразу (пакетная сборка)
Чтобы не переключать списки четыре раза:
- Меню Сборка → Пакетная сборка… (Build → Batch Build…).
- В таблице перечислены все проекты во всех сочетаниях конфигурации и платформы (Project / Configuration / Platform / Build). Нажмите кнопку Select All («Выбрать все») справа — галочки встанут во всех строках.
- Нажмите Rebuild («Перестроить»). Visual Studio соберёт по очереди все сочетания.
- Проверьте окно Вывод: в конце
0 failed.
Время — примерно вчетверо больше одной конфигурации (по замеру сборки тех же четырёх сочетаний из командной строки — около 1 мин 20 с, см. шаг 4).
Можно и по-другому: выбрать в списках Release + x64, выполнить Пересобрать решение,
затем Release + Win32, затем Debug + x64, затем Debug + Win32. Результаты разных
сочетаний лежат в разных папках и друг друга не затирают.
3.6 Запуск программы из Visual Studio (по желанию)
- В Обозревателе решений щёлкните правой кнопкой по нужному проекту, например
TMCGROUT, → «Назначить автозагружаемым проектом» (Set as Startup Project). Имя проекта станет жирным. - Нажмите Ctrl+F5 — Отладка → Запуск без отладки (Debug → Start Without Debugging) —
или F5 — Отладка → Начать отладку (Debug → Start Debugging), чтобы запустить под
отладчиком (имеет смысл в конфигурации
Debug).
Соответствие проектов и программ: PlanRT_H → tmc_rth.exe, PlanRT_X → tmc_rtx.exe,
FldView → FieldView.exe, TMCGROUT/TMCROS/TMC_DN → одноимённые .exe. Библиотеки
(complex, exprint, Prepr, SFILE95, TMCIndan, TMCLibError) не запускаются.
3.7 Сборка одного проекта
Если нужно пересобрать только одну программу (например, после правки в ядре H):
в Обозревателе решений щёлкните правой кнопкой по проекту PlanRT_H → «Собрать» (Build)
или «Пересобрать» (Rebuild). Visual Studio сначала соберёт библиотеки, от которых зависит
этот проект (зависимости заданы в tamic.slnx), затем сам проект.
Кто от чего зависит (по src\tamic.slnx и списку библиотек компоновщика в .vcxproj):
| Программа | Библиотеки пакета | Системные библиотеки сверх стандартных |
|---|---|---|
| TMCROS, TMCGROUT, TMC_DN | sfile95, complex, exprint | — |
| tmc_rth, tmc_rtx | sfile95, prepr, exprint, TMCIndan, TMCLibError | — |
| FieldView | sfile95, prepr, exprint, TMCIndan, TMCLibError | opengl32, glu32 (из Windows SDK) |
Дальше — Шаг 4. Сборка из командной строки (по желанию) или сразу Шаг 5. Проверка и пробный запуск.
MFC 1.3 · Step 3. Building in Visual Studio
What this page covers. You will open the common solution src\tamic.slnx in Visual Studio 2026,
choose the configuration (Release or Debug) and the platform (x64 or Win32),
build all 12 projects with one command and find the finished programs. At the end — how to build
all four combinations at once and how to start a program from Visual Studio.
Before this step, step 1 (Visual Studio with MFC) and
step 2 (sources in C:\src\TMC_Suite) must be completed.
Nothing needs to be configured in the projects: the paths to headers, libraries and output folders are already set by the common files
build\Common.props,build\LibOutput.props,build\ExeOutput.props, which are included in all projects. The build order (libraries first, then programs) is set by the solution itself. Additional macros for the X-mode are not needed either — in version 1.3 they are defined in the common headers.
3.1 Open the solution
- Start Visual Studio 2026 from the Start menu.
-
In the start window, click Open a project or solution.
If there is no start window (Visual Studio is already open), choose File → Open → Project/Solution… in the menu, keyboard shortcut Ctrl+Shift+O.
-
In the file selection window, go to the folder
C:\src\TMC_Suite\src, select the filetamic.slnxand click Open.Open exactly
tamic.slnxin thesrcfolder, not individual.vcxprojfiles: only the solution knows in which order to build the projects. -
Wait until Visual Studio loads the projects (at the bottom of the window, in the status bar, the indicator stops spinning). The first opening takes up to a minute: the IDE builds the IntelliSense database.
-
Open Solution Explorer if it is not open: View → Solution Explorer, Ctrl+Alt+L. It should show the solution row
tamicwith 12 of 12 projects (Solution 'tamic' (12 of 12 projects)):complex,exprint,FldView,PlanRT_H,PlanRT_X,Prepr,SFILE95,TMC_DN,TMCGROUT,TMCIndan,TMCLibError,TMCROS.If a project is marked (unloaded) or (incompatible), see step 7.
3.2 Choose the configuration and platform
On the toolbar under the menu there are two drop-down lists next to the green start button:

- The left list is the configuration (Solution Configurations):
Release— release: optimized programs that are distributed to users. Choose it if you do not know what to choose.Debug— debug build: the programs are slower and larger; they are needed to find errors in the debugger.
- The right list is the platform (Solution Platforms):
x64— 64-bit programs (output indist\win64\…). Recommended for modern computers and large computations; GPU computing (/GPU) is available only in the 64-bit version.Win32— 32-bit programs (output indist\win32\…). Needed for 32-bit Windows.
There are no other platforms in the solution. Items like ARM64 or Any CPU should not be in the list.
For the first time, choose Release and x64.
3.3 Build the solution
-
Open the Build menu.

The “Build” menu -
Choose Rebuild Solution — for the first build or after downloading a new version of the sources. For repeated builds after small changes, Build Solution, Ctrl+Shift+B, is enough: it rebuilds only what has changed.
- The Output window opens with the build progress. If it did not open: View → Output, Ctrl+Alt+O; in the Show output from: list, choose Build.
-
Wait for the last line. On success it looks like this (in the Russian interface — the same numbers with Russian words):
========== Rebuild All: 12 succeeded, 0 failed, 0 skipped ==========With Build Solution the line starts with
Build:and also contains the counterup-to-date(projects that are already up to date). The main thing is12 succeeded(or “успешно: 12” in the Russian interface) and0 failed(“с ошибками: 0”). -
Open the Error List: View → Error List. It should show 0 errors and 0 warnings (the filter buttons at the top of the window show
0 Errors,0 Warnings). Version 1.3 builds without warnings in all four configurations — this has been verified.
How long to wait. Measurement (a computer with a 6-core Intel Core i5-9600KF processor, 64 GB of memory, full rebuild of one configuration): about 20–25 seconds. By default Visual Studio builds several projects in parallel. On a slow computer — up to several minutes.
Which lines in the “Output” window are not errors
_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)— an informational message of the MFC headers, not a warning. It is printed by the projects that use MFC; it does not affect the result.Generating Code...— the compiler is optimizing the program; this is normal.- Lines like
complex.vcxproj -> C:\src\TMC_Suite\dist\win64\lib\complex.lib— they report where the finished file was put.
3.4 Where the output is
The finished files are put not into the project folders but into the common dist folder in the project root:
| Configuration | Platform | Programs (6 × .exe) |
Libraries (6 × .lib) |
|---|---|---|---|
| Release | x64 | C:\src\TMC_Suite\dist\win64\bin\ |
C:\src\TMC_Suite\dist\win64\lib\ |
| Release | Win32 | C:\src\TMC_Suite\dist\win32\bin\ |
C:\src\TMC_Suite\dist\win32\lib\ |
| Debug | x64 | C:\src\TMC_Suite\dist\win64\debug\bin\ |
C:\src\TMC_Suite\dist\win64\debug\lib\ |
| Debug | Win32 | C:\src\TMC_Suite\dist\win32\debug\bin\ |
C:\src\TMC_Suite\dist\win32\debug\lib\ |
Intermediate files (.obj, .pch, etc.) are in C:\src\TMC_Suite\build\obj\<platform>\<configuration>\<project>\.
They can be deleted: they will be created again on the next build.
After building Release x64, the bin folder should contain 6 programs (next to each one there is a
.pdb file with debug information; it is not needed to run the program):
FieldView.exe TMC_DN.exe TMCGROUT.exe TMCROS.exe tmc_rth.exe tmc_rtx.exe
A detailed check of all files and sizes is in step 5.

To open the folder from Visual Studio: in Solution Explorer, right-click the
tamic solution → Open Folder in File Explorer — this opens
C:\src\TMC_Suite\src; go one level up and open dist.
3.5 Build all four combinations at once (batch build)
To avoid switching the lists four times:
- Menu Build → Batch Build….
- The table lists all projects in all combinations of configuration and platform (Project / Configuration / Platform / Build). Click the Select All button on the right — checkmarks appear in all rows.
- Click Rebuild. Visual Studio builds all combinations one after another.
- Check the Output window: at the end,
0 failed.
The time is roughly four times that of one configuration (according to the measurement of building the same four combinations from the command line — about 1 min 20 s, see step 4).
Alternatively: choose Release + x64 in the lists, run Rebuild Solution,
then Release + Win32, then Debug + x64, then Debug + Win32. The outputs of different
combinations are in different folders and do not overwrite each other.
3.6 Starting a program from Visual Studio (optional)
- In Solution Explorer, right-click the desired project, for example
TMCGROUT, → Set as Startup Project. The project name becomes bold. - Press Ctrl+F5 — Debug → Start Without Debugging —
or F5 — Debug → Start Debugging — to run it under
the debugger (makes sense in the
Debugconfiguration).
Correspondence between projects and programs: PlanRT_H → tmc_rth.exe, PlanRT_X → tmc_rtx.exe,
FldView → FieldView.exe, TMCGROUT/TMCROS/TMC_DN → .exe files of the same name. The libraries
(complex, exprint, Prepr, SFILE95, TMCIndan, TMCLibError) are not started.
3.7 Building a single project
If you need to rebuild only one program (for example, after a change in the H kernel):
in Solution Explorer, right-click the PlanRT_H project → Build
or Rebuild. Visual Studio first builds the libraries this project depends on
(the dependencies are set in tamic.slnx), then the project itself.
What depends on what (according to src\tamic.slnx and the linker library list in .vcxproj):
| Program | Package libraries | System libraries beyond the standard ones |
|---|---|---|
| TMCROS, TMCGROUT, TMC_DN | sfile95, complex, exprint | — |
| tmc_rth, tmc_rtx | sfile95, prepr, exprint, TMCIndan, TMCLibError | — |
| FieldView | sfile95, prepr, exprint, TMCIndan, TMCLibError | opengl32, glu32 (from the Windows SDK) |
Next — Step 4. Building from the command line (optional) or directly Step 5. Checking and a test run.