Re: [fpc-pascal] Windows-->Linux library

2007-02-14 Thread Marco van de Voort
> There's also LNet. http://wiki.lazarus.freepascal.org/lNet
>  Here's a list of other available networking components: 
> http://wiki.lazarus.freepascal.org/Components_and_Code_examples#Networking

There is also Indy 10 for FPC. (and even Indy 9, but not in a portable way)

http://www.indyproject.org/Sockets/fpc/index.aspx

Note that FreeBSD and Mac OS X server support requires a recent 2.1.1
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Windows-->Linux library

2007-02-14 Thread Darius Blaszijk

There's also LNet. http://wiki.lazarus.freepascal.org/lNet
Here's a list of other available networking components: 
http://wiki.lazarus.freepascal.org/Components_and_Code_examples#Networking


Darius

- Original Message - 
From: "Matt Emson" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Wednesday, February 14, 2007 12:39 PM
Subject: Re: [fpc-pascal] Windows-->Linux library


The fonctions use to manage sockets under Linux and Windows are 
different.


Rather than nasty ifdefs, you might want to look at the Free Pascal port 
of

the Synapse Sockets library. It will abstract away your OS differences and
pushes support of the network code away from your hands.

http://synapse.ararat.cz/

I used Synapse with Windows a few years ago and found it very good. YMMV.

HTH

M

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Windows-->Linux library

2007-02-14 Thread Matt Emson
> The fonctions use to manage sockets under Linux and Windows are different.

Rather than nasty ifdefs, you might want to look at the Free Pascal port of
the Synapse Sockets library. It will abstract away your OS differences and
pushes support of the network code away from your hands.

http://synapse.ararat.cz/

I used Synapse with Windows a few years ago and found it very good. YMMV.

HTH

M

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Windows-->Linux library

2007-02-14 Thread Michel Meunier

Leducq Dominique a écrit :

Le Mercredi 14 Février 2007 09:19, Michel Meunier a écrit :
  

Hello,
With your help, my initial library .dll writen with Delphi, is now
working at about 95% when compiled with fpc. Now my goal is to get a .so
library under Linux. So I have begun to compile it under linux.
There are a lot of hints but not important, but after I have this message:
Error: Util -as not found, switching to external linking
Was does it mean?



Have you the binutils package installed ?

  

Also a strange thing, to launch lazarus, I have to use this command:
sudo /usr/share/startlazarus, there is nothing in the /usr/bin
directorie. I have installed Lazarus and FPC with .deb files in my
Kubuntu. But it's not an important problem, the main problem is my
unhability to compile my library.
Best regards



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


  
Thanks for your help. In fact as the project had been save under 
windows, the compile options were for Windows. So the compilation begins 
very well.Now I have a lot of problem because the library open a socket 
and establish a link with the UDP standard. The fonctions use to manage 
sockets under Linux and Windows are different. So I have to add 
directive of compilation to work under windows or linux. A lot of work.


--
Michel Meunier

www.etoiles-a-bleau.fr


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Windows-->Linux library

2007-02-14 Thread Leducq Dominique
Le Mercredi 14 Février 2007 09:19, Michel Meunier a écrit :
> Hello,
> With your help, my initial library .dll writen with Delphi, is now
> working at about 95% when compiled with fpc. Now my goal is to get a .so
> library under Linux. So I have begun to compile it under linux.
> There are a lot of hints but not important, but after I have this message:
> Error: Util -as not found, switching to external linking
> Was does it mean?

Have you the binutils package installed ?

> Also a strange thing, to launch lazarus, I have to use this command:
> sudo /usr/share/startlazarus, there is nothing in the /usr/bin
> directorie. I have installed Lazarus and FPC with .deb files in my
> Kubuntu. But it's not an important problem, the main problem is my
> unhability to compile my library.
> Best regards

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Windows-->Linux library

2007-02-14 Thread Vincent Snijders

Michel Meunier schreef:

Hello,
With your help, my initial library .dll writen with Delphi, is now 
working at about 95% when compiled with fpc. Now my goal is to get a .so 
library under Linux. So I have begun to compile it under linux.

There are a lot of hints but not important, but after I have this message:
Error: Util -as not found, switching to external linking
Was does it mean?


Can you check that the target os and the target cpu are correct? I noticed that the 
default fpc.cfg creates an entry -XP-, if crosscompiling, which could cause the 
error message you got.


Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Windows-->Linux library

2007-02-14 Thread Michel Meunier

Hello,
With your help, my initial library .dll writen with Delphi, is now 
working at about 95% when compiled with fpc. Now my goal is to get a .so 
library under Linux. So I have begun to compile it under linux.

There are a lot of hints but not important, but after I have this message:
Error: Util -as not found, switching to external linking
Was does it mean?
Also a strange thing, to launch lazarus, I have to use this command:
sudo /usr/share/startlazarus, there is nothing in the /usr/bin 
directorie. I have installed Lazarus and FPC with .deb files in my 
Kubuntu. But it's not an important problem, the main problem is my 
unhability to compile my library.

Best regards

--
Michel Meunier

Web: www.etoiles-a-bleau.fr


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal