Recent

Author Topic: Indy components for Lazarus  (Read 11596 times)

Josef Koller

  • Guest
Indy components for Lazarus
« on: December 14, 2005, 01:59:12 am »
Hello,

I would like to install the indy package (indy4lazarus-20040117) but I get a lot of erros by compiling like this:

C:\download\Lazarus\indy\source\IdWinsock2.pas(11,1) Warning: Comment level 2 found
C:\download\Lazarus\indy\source\IdWinsock2.pas(12,1) Warning: Comment level 3 found
C:\download\Lazarus\indy\source\IdWinsock2.pas(13,1) Warning: Comment level 4 found
C:\download\Lazarus\indy\source\IdWinsock2.pas(14,1) Warning: Comment level 5 found
...
C:\download\Lazarus\indy\source\IdWinsock2.pas(4349,56) Warning: Comment level 13 found
C:\download\Lazarus\indy\source\IdWinsock2.pas(4520,86) Warning: Comment level 13 found
C:\download\Lazarus\indy\source\IdWinsock2.pas(4533) Fatal: Unexpected end of file

What's wrong? Can anybody help me?

Best regards

Josef

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Indy components for Lazarus
« Reply #1 on: December 14, 2005, 02:33:27 am »
Probably the code contains something like this:

{ coment coment coment }
{
{
{ coment coment coment }

Notice that there are 4 { 's and only 2 } 's. Free Pascal doesn´t like this. Every { must be enclosed with a }.

I´m not sure, but perhaps if you specify compatibility mode to Delphi {$MODE Delphi} it will ignore this.

If not, you need to manually correct the comments. In many cases you may use // comments to substitute a single line starting with {

Anonymous

  • Guest
Indy components for Lazarus
« Reply #2 on: December 14, 2005, 11:04:34 am »
Hello,

Thanks for help. but now I have an other problem:

The compiler stops in line 3967.
Here is a function like this:

function WS2Call( AStubEntryIndex : DWORD ) : Pointer; forward;

procedure WS2Stub_WSACleanup;                   asm  mov eax,  0; call
WS2Call; jmp eax; end;
procedure WS2Stub_accept;                          asm  mov eax,  1; call WS2Call; jmp eax; end;
.....

I read in a posting in sourceforge that I have to give begin end end -Comands to this funtction. But where?

I tested the following:

function WS2Call( AStubEntryIndex : DWORD ) : Pointer; forward;

procedure WS2Stub_WSACleanup;
begin                
asm  mov eax,  0; call WS2Call; jmp eax; end;
end;
procedure WS2Stub_accept;
begin                        
asm  mov eax,  1; call WS2Call; jmp eax; end;
end;

etc.

But than I get an forward-error in the function

function WS2Call( AStubEntryIndex : DWORD ) : Pointer;
begin
  with WS2StubTable[AStubEntryIndex] do
  begin
    if hWS2Dll = 0 then
....

What is the correct declaration to get this Indy-components?

Many thanks and best regards

Josef

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2706
Indy components for Lazarus
« Reply #3 on: December 14, 2005, 11:22:38 am »
That indy package is pretty old. IIRC it is part of FPC (or will become part of it)
Better ask the ML, since afair Marco van Voort was working on it.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
Indy components for Lazarus
« Reply #4 on: December 14, 2005, 12:54:47 pm »
Hello,

no I don't think so. It's from sourceforge yesterday and as a test from this day. (indy4lazarus-20040117)

The same result:

The compiler stops bay this funktion and I don't know where I have to give the begin and end commands.

Best regards

Josef

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Indy components for Lazarus
« Reply #5 on: December 14, 2005, 02:08:56 pm »
Quote from: "Anonymous"
Hello,

no I don't think so. It's from sourceforge yesterday and as a test from this day. (indy4lazarus-20040117)


So, it is from januari 2004, that is pretty old in my terms, because I know Marco had a working version last September.

Anonymous

  • Guest
Indy components for Lazarus
« Reply #6 on: December 14, 2005, 03:09:29 pm »
Hi,
ther is no newer Version in sourceforge. Do you hae a link to a newer one?

Josef

 

TinyPortal © 2005-2018