Хочу перенести одну игру с Delphi на MP. Структура программы следующая:
Главный модуль:
unit Main;
interface
uses
LoadLevelFromFile, Kolobok_01, ObrabotkaPolya;
Модули;
var
Переменные;
implementation
end.
Из главного модуля вызываются процедуры из модулей объявленных в uses.
Сами же модули имеют структуру следующую:
unit Kolobok_01;
interface
implementation
uses
Main;
end.
Модули пользуются переменными из главного модуля программы.
Когда я делаю такую же структуру как и delphi, MP выбивает ошибку:
Building main.mpproj
Started at 28.04.2011 20:50:07
Compiler Communication Method: Console Redirection (Win32.Common)
Detecting units of 'Kolobok_01.mpsrc'...
using unit main
Detecting units of 'main.mpsrc'...
using unit kolobok_01
Solving compilation order...
Circular unit dependencies between unit main and Kolobok_01.
ERROR: could not solve unit dependency
Помогите пожалуйста!