Where I have to try to add those?

I added in the project source:

program Project1;

{$mode objfpc}{$H+}
*
{$linklib c}
{$linklib pthread}
*
uses
 {$IFDEF UNIX}{$IFDEF UseCThreads}
 cthreads,
 {$ENDIF}{$ENDIF}
 Interfaces, // this includes the LCL widgetset
 Forms
 { add your units here }, Unit1, UIBLaz;

begin
 Application.Initialize;
 Application.CreateForm(TForm1, Form1);
 Application.Run;
end.
But nothing was changed.
The messages are the same as before.
andrea



Michael Van Canneyt wrote:
On Wed, 16 May 2007, Andrea Mauri wrote:

I installed fpc and lazarus on Ubuntu.
fpc using apt
lazarus, last svn
In my project I use UIB to access to a firebird DB.
I used UIB (2.1) both on windows and linux (FC6).
And it works fine.
On Ubuntu I installed without any problem UIB but if I put a JvUIBDataset on a
form and try to compile the project I got an error.
I pasted the messages at the bottom of this e-mail.
The same project, one form with a JvUIBdataset is compiled without any problem
on fedora.
Any hint?

Try adding

{$linklib c}
{$linklib pthread}

To the program file. Looks like the thread stuff is not found.

Michael.

Andrea

messages:

Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.0.4 [2007/02/02] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for i386
Compiling /tmp/project1.lpr
Compiling unit1.pas
Linking /tmp/project1
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__CREATE$POINTER$BOOLEAN$BOOLEAN$ANSISTRING$$TEVENTOBJECT':
syncobjs.pp:(.text+0x334): undefined reference to `sem_init'
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__DESTROY':
syncobjs.pp:(.text+0x3a4): undefined reference to `sem_destroy'
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__RESETEVENT':
syncobjs.pp:(.text+0x3f3): undefined reference to `sem_trywait'
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__SETEVENT':
syncobjs.pp:(.text+0x44f): undefined reference to `sem_getvalue'
syncobjs.pp:(.text+0x464): undefined reference to `sem_post'
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__WAITFOR$LONGWORD$$TWAITRESULT':
syncobjs.pp:(.text+0x4b7): undefined reference to `sem_wait'
syncobjs.pp:(.text+0x503): undefined reference to `sem_post'
project1.lpr(17,1) Error: Error while linking
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__CREATE$POINTER$BOOLEAN$BOOLEAN$ANSISTRING$$TEVENTOBJECT':
syncobjs.pp:(.text+0x334): undefined reference to `sem_init'
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__DESTROY':
syncobjs.pp:(.text+0x3a4): undefined reference to `sem_destroy'
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__RESETEVENT':
syncobjs.pp:(.text+0x3f3): undefined reference to `sem_trywait'
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__SETEVENT':
syncobjs.pp:(.text+0x44f): undefined reference to `sem_getvalue'
syncobjs.pp:(.text+0x464): undefined reference to `sem_post'
/usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function
`SYNCOBJS_TEVENTOBJECT_$__WAITFOR$LONGWORD$$TWAITRESULT':
syncobjs.pp:(.text+0x4b7): undefined reference to `sem_wait'
syncobjs.pp:(.text+0x503): undefined reference to `sem_post'
project1.lpr(17,1) Error: Error while linking









_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


--
Andrea Mauri
PhD student - Chemical Sciences
Milano Chemometrics and QSAR Research Group
Department of Environmental Sciences
University of Milano-Bicocca P.zza della Scienza, 1
20126 Milano - Italy

Tel: ++39 02 64482801
mailto:[EMAIL PROTECTED]
http://www.disat.unimib.it/chm/

Reply via email to