Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-05

RE: FreePascal installation for OS2 / accessing PostgreSQL database

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

SchiSchi

Hallo Arne,

thank you for your answer.

Yes I've tested also VPascal.
Usually I use the Sibyl compiler, which is quite similar to Delphi.

My original intention to test VPascal and FreePascal is, that I try to get a client interface to PostgreSQL working under OS2 using the written Pascal units. But I've bad luck. Something is (or I'm doing) wrong. EMX, the Postgres-DLL (PQ.DLL) and my unit (imports PQ.DLL functions) does not work together somehow.

Also delivered sample units for FreePascal and VPascal I do not get running. Somewhere a file "c.a" is requested, I do not have. Using the other compiler (and sample) I get the result "Connection terminated by SIGSEV" (from EMX).

All I know is, PostgreSql installation is correct, because the delivered PSQL.EXE does work.

I'm nearly at the end of my ideas.

Any comments are welcome.

Best Regards and Thanks.
-Holger

P.S.: Please answer to too, I'm not a member of the list yet.

Show quoted text 26 lines
-----Original Message----- From: ext Arne Hanssen Sent: Sonntag, 20. Mai 2001 10:16 To: Subject: FreePascal installation for OS2 ----- Forwarded message from SchiSchi ----- I've downloaded os2104.zip (EMX version - for OS/2 and DOS) and installed it. In readme.txt it is mentioned to test: ppos2 hello (for EMX version) ----- End forwarded message ----- Have you concidered Virtual Pascal (www.vpascal.com) for OS/2 development? I think VP is a better Pascal compiler for this plattform than FPC (VP is a native OS/2 compiler, which later on was extended to support Win32) - and it is (now) free. -- Vennlig hilsen / Best regards |\ ___,,--, _ Arne Hanssen, Senja, Norway /,`--'' \-,,__,'/ http://home.enitel.no/arneh |,4 ) )_ ) /~-----' http://home.c2i.net/bkgras -----'---^~(_/-_)--(_/_)-------
Unknown author
to SchiSchi

Date sent: Fri, 25 May 2001 09:01:57 +0200
From: SchiSchi
To:
Copies to:
Subject: [fpc-pascal]RE: FreePascal installation for OS2 / accessing PostgreSQL database Send reply to:

Show quoted text 7 lines
get a client interface to PostgreSQL working under OS2 using the written Pascal units. But I've bad luck. Something is (or I'm doing) wrong. EMX, the Postgres-DLL (PQ.DLL) and my unit (imports PQ.DLL functions) does not work together somehow. Also delivered sample units for FreePascal and VPascal I do not get running. Somewhere a file "c.a" is requested, I do not have. Using the

This is due to {$LINKLIB C} - that one is mostly for *nix platforms. There's no support for OS/2 in the delivered interface units, because there's nobody to work on it and test it. Basically, you should only need to add an IFDEF around this line and use cdecl for all imported functions if it's missing somewhere.

other compiler (and sample) I get the result "Connection terminated by SIGSEV" (from EMX).

You should probably compile with debug info and try debugging it using PMGDB (distributed with FPC). That should help you to locate the problem.

Have a nice day

Tomas Hajny, on Internet
in urgent cases