Sign in Join

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

Mailing lists / fpc-pascal / 2007-02

Compile library with Linux

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Michel Meunier

Hello,
My library under Windows is now OK, it use an UDP socket with the Synapse units (wonderful job).
Now I want to compile it under Linux.
The compilation is OK, but when I try to use the .so library, I get this message:
This binary has no thread support compiled in.
Recompile the application with a thread-driver in the program uses clause before other units using thread.
Runtime error 232 at $B6A4418B

I use a thread inside the code to survey the UDP socket, it's work very well with Windows, but do you know where is the problem with Linux?

Best Regards

Michel Meunier

Florian Klaempfl
to Michel Meunier
Show quoted text 13 lines
Hello, My library under Windows is now OK, it use an UDP socket with the Synapse units (wonderful job). Now I want to compile it under Linux. The compilation is OK, but when I try to use the .so library, I get this message: This binary has no thread support compiled in. Recompile the application with a thread-driver in the program uses clause before other units using thread. Runtime error 232 at $B6A4418B I use a thread inside the code to survey the UDP socket, it's work very well with Windows, but do you know where is the problem with Linux?

Well, do as the message say and add the cthreads unit. This is not done by default because it causes libc dependencies.

Michel Meunier
to Florian Klaempfl
Florian Klaempfl wrote 15 lines
Michel Meunier schrieb: > Hello, > My library under Windows is now OK, it use an UDP socket with the > Synapse units (wonderful job). > Now I want to compile it under Linux. > The compilation is OK, but when I try to use the .so library, I get this > message: > This binary has no thread support compiled in. > Recompile the application with a thread-driver in the program uses > clause before other units using thread. > Runtime error 232 at $B6A4418B > > I use a thread inside the code to survey the UDP socket, it's work very > well with Windows, but do you know where is the problem with Linux?

Well, do as the message say and add the cthreads unit. This is not done by default because it causes libc dependencies. Ok, if I understand, I have to add cthreads in the Uses part. But why can I compile a program witch use threads without any error when an unit is missing? Thanks a lot for your help.

Show quoted text 5 lines
_______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Michel Meunier Web: www.etoiles-a-bleau.fr
Florian Klaempfl
to Michel Meunier
Show quoted text 21 lines
Florian Klaempfl a écrit : > Michel Meunier schrieb: >> Hello, >> My library under Windows is now OK, it use an UDP socket with the >> Synapse units (wonderful job). >> Now I want to compile it under Linux. >> The compilation is OK, but when I try to use the .so library, I get this >> message: >> This binary has no thread support compiled in. >> Recompile the application with a thread-driver in the program uses >> clause before other units using thread. >> Runtime error 232 at $B6A4418B >> >> I use a thread inside the code to survey the UDP socket, it's work very >> well with Windows, but do you know where is the problem with Linux? > Well, do as the message say and add the cthreads unit. This is not done by default because it causes libc dependencies. Ok, if I understand, I have to add cthreads in the Uses part. But why can I compile a program witch use threads without any error when an unit is missing?

Because the threading interface is plugable and FPC provides a dummy driver by default.

Show quoted text 9 lines
Thanks a lot for your help. > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > >
Michel Meunier
to Florian Klaempfl: Well, do as the message say and add the cthreads unit. This is not done by default…
Florian Klaempfl wrote 17 lines
Michel Meunier schrieb: > Hello, > My library under Windows is now OK, it use an UDP socket with the > Synapse units (wonderful job). > Now I want to compile it under Linux. > The compilation is OK, but when I try to use the .so library, I get this > message: > This binary has no thread support compiled in. > Recompile the application with a thread-driver in the program uses > clause before other units using thread. > Runtime error 232 at $B6A4418B > > I use a thread inside the code to survey the UDP socket, it's work very > well with Windows, but do you know where is the problem with Linux? Well, do as the message say and add the cthreads unit. This is not done by default because it causes libc dependencies.

Correction of the previous message:
Ok, if I understand, I have to add cthreads in the Uses part. But why can I compile a program witch use threads without any error when an unit is missing?
Thanks a lot for your help.

Show quoted text 5 lines
_______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Michel Meunier Web: www.etoiles-a-bleau.fr
Michel Meunier
to Florian Klaempfl: Because the threading interface is plugable and FPC provides a dummy driver by default.
Florian Klaempfl wrote 28 lines
Michel Meunier schrieb: > Florian Klaempfl a écrit : >> Michel Meunier schrieb: >>> Hello, >>> My library under Windows is now OK, it use an UDP socket with the >>> Synapse units (wonderful job). >>> Now I want to compile it under Linux. >>> The compilation is OK, but when I try to use the .so library, I get >>> this >>> message: >>> This binary has no thread support compiled in. >>> Recompile the application with a thread-driver in the program uses >>> clause before other units using thread. >>> Runtime error 232 at $B6A4418B >>> >>> I use a thread inside the code to survey the UDP socket, it's work >>> very >>> well with Windows, but do you know where is the problem with Linux? >> > > Well, do as the message say and add the cthreads unit. This is not > done by default because it causes libc dependencies. Ok, if I > understand, I have to add cthreads in the Uses part. But why can I > compile a program witch use threads without any error when an unit is > missing? Because the threading interface is plugable and FPC provides a dummy driver by default.

Is it specific to Linux, or also available with Windows. My dll seams to work properly uner windows, and it uses a thread.

Show quoted text 16 lines
> Thanks a lot for your help. > >> _______________________________________________ >> fpc-pascal maillist - >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal >> >> > > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Michel Meunier Web: www.etoiles-a-bleau.fr
Daniël Mantione
to Michel Meunier

Op Sun, 18 Feb 2007, schreef Michel Meunier:

Is it specific to Linux, or also available with Windows. My dll seams to work properly uner windows, and it uses a thread.

Specifix to Unix. Under Unix, you must use cthreads.

Daniël