#1 2023-07-27 12:16:32

malom
Member
Registered: 2017-01-12
Posts: 4

Compiling Project02Server example on Delphi 11

Compilation fails with error message: "[dcc32 Fatal Error] mormot.core.variants.pas(27): F2047 Circular unit reference to 'mormot.core.base'".
I found, that it is caused by the "Unit scope names" project option: "System;Xml;Data;Datasnap;Web;Soap;mormot.core".
After deleting "mormot.core", it compiles. I don't know why, so I reported the problem, but don't know wether it is a valid solution.

Offline

#2 2023-07-27 15:12:52

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,272
Website

Re: Compiling Project02Server example on Delphi 11

I don't understand where this mormot.core comes from.
There is no such reference in the files supplied with mORMOt.

Offline

#3 2023-07-28 09:29:04

malom
Member
Registered: 2017-01-12
Posts: 4

Re: Compiling Project02Server example on Delphi 11

Sorry. Don't waste your valuable time with it.
It seems to me unrelated to Mormot, it is a reproducible IDE bug:

When opening "Project02Server.dpr", a "Project02Server.dproj" file is automatically generated by the IDE,
and it contains a specific line that contains "mormot.core".

<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;mormot.core;$(DCC_Namespace)</DCC_Namespace>

    <PropertyGroup Condition="'$(Base)'!=''">
        <DCC_E>false</DCC_E>
        <DCC_F>false</DCC_F>
        <DCC_K>false</DCC_K>
        <DCC_N>false</DCC_N>
        <DCC_S>false</DCC_S>
        <DCC_ImageBase>00400000</DCC_ImageBase>
        <SanitizedProjectName>Project02Server</SanitizedProjectName>
        <VerInfo_Locale>1038</VerInfo_Locale>
        <VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=;CFBundleName=</VerInfo_Keys>
        <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;mormot.core;$(DCC_Namespace)</DCC_Namespace>
        <Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon>
        <Icns_MainIcns>$(BDS)\bin\delphi_PROJECTICNS.icns</Icns_MainIcns>
    </PropertyGroup>

Offline

Board footer

Powered by FluxBB