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
Mailing lists / fpc-pascal / 2007-02
Windows-->Linux library
7 messages · 6 people ·
- MMichel Meunier 2
- DDarius Blaszijk 1
- LLeducq Dominique 1
- MMarco van de Voort 1
- MMatt Emson 1
- VVincent Snijders 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Michel Meunier wrote 7 lines
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
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
Have you the binutils package installed ?
Show quoted text 6 lines
Leducq Dominique wrote 28 lines
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.
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.
I used Synapse with Windows a few years ago and found it very good. YMMV.
HTH
M
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
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
