The Delphi mode is needed. I've updated the sources to enable the Delphi mode for FPC. Please re-download the updated version. It will compile without issues.
Yury Sidorov. On 6/9/2017 1:38 PM, Stefan Fischer wrote:
after adding {$mode objfpc}{$H+} to synsrv I got these errors: SynSrv.pas(435,63) Error: Wrong number of parameters specified for call to "ServerLoop" SynSrv.pas(77,15) Error: Found declaration: ServerLoop(TObject); SynSrv.pas(672,75) Error: Wrong number of parameters specified for call to "InternalExecute" SynSrv.pas(146,15) Error: Found declaration: InternalExecute(TObject); SynSrv.pas(686,15) Error: Incompatible types: got "Pointer" expected "TExecLoop" SynSrv.pas(693,49) Error: Wrong number of parameters specified for call to "DoThreadWaiting" SynSrv.pas(80,15) Error: Found declaration: DoThreadWaiting(TObject); SynSrv.pas(694,63) Error: Wrong number of parameters specified for call to "Execute" SynSrv.pas(635,21) Error: Found declaration: Execute(TObject); SynSrv.pas(700,43) Error: Wrong number of parameters specified for call to "InternalExecute" SynSrv.pas(146,15) Error: Found declaration: InternalExecute(TObject); SynSrv.pas(759,15) Error: Incompatible types: got "Pointer" expected "TExecLoop" SynSrv.pas(791,17) Error: Incompatible types: got "Pointer" expected "TSynTcpSrvConnection" SynSrv.pas(816,10) Error: Incompatible types: got "Pointer" expected "TSynTcpSrvConnection" -----Ursprüngliche Nachricht----- *Von:* Stefan Fischer <[email protected]> *Gesendet:* Fre 9 Juni 2017 12:33 *An:* Ararat Synapse <[email protected]> *Betreff:* Re: [Synalist] HTTPS Server demo on debian and raspberry pi Thanks Yury, tried to compile it with fpc 3.0.0 and got this errors: SynSrv.pas(28,24) Error: Identifier not found "class" SynSrv.pas(29,35) Fatal: Syntax error, ";" expected but "OF" found -----Ursprüngliche Nachricht----- *Von:* Yury Sidorov <[email protected]> *Gesendet:* Don 8 Juni 2017 21:40 *An:* [email protected] *Betreff:* Re: [Synalist] HTTPS Server demo on debian and raspberry pi Hi, In 2011 I got the http(s) server code SynHttpSrv by author Semi from this mail list. I am very grateful to him for sharing his code. Since 2011 I've fixed bugs and improved the code and the http server SynHttpSrv works very well. For me it works on Windows and Android. There should be no issues for other platforms. Here is the code: https://drive.google.com/open?id=0BxhmPD-N0cvgWjlnUkppLXZMZkU Lukas Gebauer, you can consider adding the SynHttpSrv to Synapse repository, since it is very useful. And thanks for Synapse of course! Yury Sidorov. On 6/8/2017 8:59 PM, Stefan Fischer wrote: > Hello,> > I want to implement a https server on debian/raspberry. > > The httpserver demo requires winsock. > > Does anyone has code for linux platform to start with. > > > Thanks, > > Stefan > > > > > ------------------------------------------------------------------------------> Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot> > > > _______________________________________________> synalist-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/synalist-public>------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
