#1 2023-03-11 00:44:50

wjpm
Member
Registered: 2022-05-23
Posts: 2

Identifier not found "THttpApiServer"

Hey guys!
I'm new to mormot and I need some help.
I ran sample "09 - HttpApi web server" and it ran perfect with Lazarus, Windows 11.
In the project definitions I changed the Target OS to Linux and the Target CPU family to x86_64.
After switching to Linux I get the following error:
HttpApiServer.dpr(19,14) Error: Identifier not found "THttpApiServer"

The paths are like this:
(-Fu)
C:\lazarus\components\mORMot
C:\lazarus\components\mORMot\SQLite3
C:\lazarus\components\mORMot\SQLite3\DDD\infra
(-Fi)
C:\lazarus\components\mORMot
C:\lazarus\components\mORMot\SQLite3
C:\lazarus\components\mORMot\SynDBDataset
C:\lazarus\components\mORMot\CrossPlatform
(-Fl)
C:\lazarus2_2_0h\lazarus\components\mORMot\static\$(TargetCPU)-$(TargetOS)

I appreciate who can help me.

Offline

#2 2023-03-11 08:44:52

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

Re: Identifier not found "THttpApiServer"

THttpApiServer is a Windows-only class: it uses the http.sys Win32 API.

Online

#3 2023-03-11 13:58:37

wjpm
Member
Registered: 2022-05-23
Posts: 2

Re: Identifier not found "THttpApiServer"

I understand.
Thanks!

Offline

Board footer

Powered by FluxBB