Sign in Join

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

Mailing lists / fpc-pascal / 2007-02

Windows-->Linux library

7 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

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

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

Reply by email

Vincent Snijders
to Michel Meunier
Michel Meunier wrote 7 lines
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

Reply by email

Leducq Dominique
to Michel Meunier: With your help, my initial library .dll writen with Delphi, is now working at about 95%…

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

Show quoted text 7 lines
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 ?

Show quoted text 6 lines
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

Reply by email

Michel Meunier
to Leducq Dominique
Leducq Dominique wrote 28 lines
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 - 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

Reply by email

Matt Emson
to Michel Meunier
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

Reply by email

Darius Blaszijk
to Matt Emson

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

Earlier message 26 lines
----- Original Message ----- From: "Matt Emson" 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 - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email