DGL
https://delphigl.com/forum/

Compiling delphi style console app with freepascal?
https://delphigl.com/forum/viewtopic.php?f=19&t=3442
Seite 1 von 1

Autor:  noeska [ Fr Nov 05, 2004 16:47 ]
Betreff des Beitrags:  Compiling delphi style console app with freepascal?

I installed fpc for linux today, but i do seem to be able to compile delphi stile applications with it. For example i use

var
varname: type = 1;

There must be a way as the same kind of struct is used in dglopengl.

Could someone give me a quick boost into fpc compiling delphi style applications?

Also i get a complaint about linking ld-linux.so? I do not know why it is needed. The lib is available though.

Autor:  Tokter [ Fr Nov 05, 2004 16:56 ]
Betreff des Beitrags: 

To compile in delphi compatibility mode, you have to set certain switches. If i remember correctly -sd. In case you did not do that :-)

Autor:  noeska [ Fr Nov 05, 2004 16:58 ]
Betreff des Beitrags: 

i did use the -Sd (and even the -S2) swich, if i do not i get lots and lots more errors.... Thanks anyway.

Autor:  Tokter [ Fr Nov 05, 2004 17:03 ]
Betreff des Beitrags: 

I haven't used fp in a while but there were quite a few little things that did not work like in delphi, that' why i stoped using it. Imho they would better fix those first than add yet another platform.

Autor:  BTierens [ Fr Nov 05, 2004 17:42 ]
Betreff des Beitrags: 

The ld stuff. I got the errors too when I started using FreePascal on Linux. I've put the solutions online:
http://home.deds.nl/~svg/freepascal/fpclinux.htm

You should add {$mode Delphi} to each file if you want to use Delphi mode.

Autor:  noeska [ Fr Nov 05, 2004 20:14 ]
Betreff des Beitrags: 

I downloaded fpc 1.94 and now things compile better.
Also i installed glib-devel now i do not have the ld linking error anymore.

New is that on executing ld is complaining about pointers not being valid anymore and refers to some c code?

Autor:  noeska [ So Nov 07, 2004 14:22 ]
Betreff des Beitrags: 

I got it solved, it needed {$LinkLib c}.

A new kylix and fpc example is available for download with tutorial #13 on http://www.noeska.com/doal .

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/