Re: [Lazarus] Libc functions and types

2012-01-16 Thread Udav
Well, I guess one option is to rebuild RTL with FPC_USE_LIBC defined. Another one is to define needed structures myself and implement function calls via syscall - what, I believe, is recommended way. But how can I determine the number of the function I want to call? -- View this message in context

[Lazarus] Libc functions and types

2012-01-16 Thread Udav
I need to use some libc functions and types (localtime_r, tm, ...) but there's very confusing situation with libc (they say it is deprecated) and it even couldn't be found by Lazarus when I write "uses libc". But there are no things I heed in the RTL. So what should I do? -- View this message in c

Re: [Lazarus] Lazarus on Ubuntu: Pixbuf again

2012-01-16 Thread waldo kitty
On 1/16/2012 02:14, Udav wrote: Guys, thanks for answering! I have had some rest on holidays and ready again to fight the problems :) Reimar Grabowski wrote But there is libgdk-pixbuf2.0-0 and of course libgdk-pixbuf2.0-dev (at least on oneiric but I am quite sure that it was on lucid, too) R.

Re: [Lazarus] Code completion improved

2012-01-16 Thread Martin
On 16/01/2012 23:10, Paul Ishenin wrote: Wow. You makes us lazy. To go further your completion code needs to guess what to write in implementation of MySortFunction :) Ideally it would be to auto write implementations on completion of well known procedures as Button1Click or Form1Create ;) W

Re: [Lazarus] Code completion improved

2012-01-16 Thread Paul Ishenin
17.01.12 1:40, Mattias Gaertner пишет: I improved the code completion for parameters. It can now create methods/procedures for parameters and variables for pointers for parameters. Here is an example for a procedure: procedure TForm1.FormCreate(Sender: TObject); var List: TList; begin Li

[Lazarus] Code completion improved

2012-01-16 Thread Mattias Gaertner
Hi all, I improved the code completion for parameters. It can now create methods/procedures for parameters and variables for pointers for parameters. Here is an example for a procedure: procedure TForm1.FormCreate(Sender: TObject); var List: TList; begin List:=TList.Create; List.Sort(@MyS

Re: [Lazarus] Units in package not found

2012-01-16 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: You have two dwriter: D:\repos\fpc-2.5.trunk\utils\fpdoc\lib\i386-win32\dwlinear.ppu Right. lazarus\examples\fpdocmanager\dwriter.pp No, the source files are in above ...\utils\fpdoc\. But you are right, I found the duplicate lazarus\examples\fpdocmanager\lib\..

Re: [Lazarus] Units in package not found

2012-01-16 Thread Mattias Gaertner
On Mon, 16 Jan 2012 05:35:32 +0100 Hans-Peter Diettrich wrote: > I've created a package for the FPDoc units, for use in the FPDocManager > (see examples/fpdocmanager). While the IDE (code tools) can find all the > units in the package, I get an compiler error about units not found. > When I ma