Re: [Lazarus] Linking dynamic libraries

2012-12-30 Thread Mattias Gaertner
On Mon, 31 Dec 2012 00:29:13 +0008 xrfang wrote: > It's clear now.  One more question, I just installed liblua5.2-0 and it > linked happily, what else does the "dev" package offer for development? Usually that's it. Mattias -- ___ Lazarus mailing li

Re: [Lazarus] Linking dynamic libraries

2012-12-30 Thread xrfang
It's clear now.  One more question, I just installed liblua5.2-0 and it linked happily, what else does the "dev" package offer for development? Thanks, Shannon 在 日, 12月 30, 2012 at 11:54 下午,Sven Barth 写道: On 30.12.2012 16:47, xrfang wrote: > Hi All, > > While I compile my program which uses

Re: [Lazarus] Linking dynamic libraries

2012-12-30 Thread leledumbo
> As far as I understand dynamic link libraries are only required at runtime, why lazarus require it on compilation? Not in *nix world. The inner workings between .dll and .so are different. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Linking-dynami

Re: [Lazarus] Linking dynamic libraries

2012-12-30 Thread Michael Van Canneyt
On Sun, 30 Dec 2012, xrfang wrote: Hi All, While I compile my program which uses liblua52.so, Lazarus refuse to compile if it cannot find the so file.   But on windows, it compile happily without the DLL file. As far as I understand dynamic link libraries are only required at runtime, why l

Re: [Lazarus] Linking dynamic libraries

2012-12-30 Thread Sven Barth
On 30.12.2012 16:47, xrfang wrote: Hi All, While I compile my program which uses liblua52.so, Lazarus refuse to compile if it cannot find the so file. But on windows, it compile happily without the DLL file. As far as I understand dynamic link libraries are only required at runtime, why lazar

[Lazarus] Linking dynamic libraries

2012-12-30 Thread xrfang
Hi All, While I compile my program which uses liblua52.so, Lazarus refuse to compile if it cannot find the so file.   But on windows, it compile happily without the DLL file. As far as I understand dynamic link libraries are only required at runtime, why lazarus require it on compilation? Tha

Re: [Lazarus] Can't create calculated field

2012-12-30 Thread Krzysztof
If I add my calculated field in FieldDefs too, then I get error that this field doesn't exists in database table -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Can't create calculated field

2012-12-30 Thread John Landmesser
In Delphi 5 i would give you this advice; perhaps update the FieldList?! SQLQuery1.FieldDefs.Clear; .. add your Field .. SQLQuery1.FieldDefs.Update; Am 30.12.2012 15:26, schrieb Krzysztof: Hi, I have this code: f := TField.Create(FDataList); f.FieldName := 'calc'; f.FieldKind := f

[Lazarus] Can't create calculated field

2012-12-30 Thread Krzysztof
Hi, I have this code: f := TField.Create(FDataList); f.FieldName := 'calc'; f.FieldKind := fkCalculated; f.SetFieldType(ftBoolean); f.DataSet := SQLQuery1.FieldDefs.Dataset; procedure TForm1.OnCalc(DataSet: TDataSet); begin SQLQuery1.FieldByName('calc').AsBoolean := true; end; Bu

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-30 Thread xrfang
Hi Sven, I think that's the library we are talking about... However, make that call to @lr[0] will NOT fix the problem, as I mentioned in previous emails.   To help you see what happened, I attach the debug log (from lazarus assembly window) again. Also, it is very strange that my programs act

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-30 Thread Sven Barth
On 30.12.2012 05:30, leledumbo wrote: Program received signal SIGSEGV, Segmentation fault. 0xb7e386d2 in ?? () from /lib/i386-linux-gnu/libc.so.6 (gdb) bt #0 0xb7e386d2 in ?? () from /lib/i386-linux-gnu/libc.so.6 #1 0xb7fa2d12 in ?? () from /usr/lib/i386-linux-gnu/liblua5.2.so.0 #2 0xb7f95f09

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-30 Thread leledumbo
> 1) from the source code of lua52.pas, how do you know the array parameter to luaL_newlib() accepts only static array but not dynamic array? No, I didn't say that. Only the pointer version is correct. The array version is wrong despite the array type passed, this is due to the pointer addresses b

Re: [Lazarus] Can't compile package SQLDBLaz in trunk

2012-12-30 Thread Krzysztof
I'm using FPC 2.7.1 from CodeTyphon installation (I don't know how to have two versions of FPC). So I will wait for new CodeTyphon, it should be release soon -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.

Re: [Lazarus] Can't compile package SQLDBLaz in trunk

2012-12-30 Thread Mattias Gaertner
On Sun, 30 Dec 2012 13:45:53 +0100 Krzysztof wrote: > Hi, > > I have latest revision 39694. When I try to add package SQLDBLaz 1.0.1 and > rebuild IDE, then I get error: > > pqteventmonitor.pas(8,11) Fatal: Can not find unit PQEventMonitor used by > PQTEventMonitor. > > My system: Linux Mint 1

[Lazarus] Can't compile package SQLDBLaz in trunk

2012-12-30 Thread Krzysztof
Hi, I have latest revision 39694. When I try to add package SQLDBLaz 1.0.1 and rebuild IDE, then I get error: pqteventmonitor.pas(8,11) Fatal: Can not find unit PQEventMonitor used by PQTEventMonitor. My system: Linux Mint 14 64bit, Cinnamon (Gnome shell 3.XX fork). GTK2 widgetsets Regards -- _

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-30 Thread xrfang
Hi leledumbo, Apparently, I've been wrong for all these years using Delphi :-S.   I always think that open arrays are same as dynamic arrays. So, 1) from the source code of lua52.pas, how do you know the array parameter to luaL_newlib() accepts only static array but not dynamic array?   If you

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-30 Thread leledumbo
> 1) what's the difference between open array and dynamic array? Is "array of Integer" open or dynamic? Open array can only be declared as parameter type, it can't be declared as a variable type. When done in latter case, it will always be dynamic array. The following example will explain: type

Re: [Lazarus] pointers in writing extension for Lazarus

2012-12-30 Thread ik
On Thu, Dec 6, 2012 at 4:14 AM, leledumbo wrote: >> Can you please give me some pointers in the matter on how to start > writing it, what should I be looking for etc... ? > > Maybe you can find something here: > http://wiki.lazarus.freepascal.org/Extending_the_IDE > Sorry for the long time to rep

Re: [Lazarus] Brook 1.0 - A new framework for web was born

2012-12-30 Thread ik
On Sat, Dec 15, 2012 at 5:23 AM, silvioprog wrote: > Hello all, Hi, > > More than 15,000 lines of source code, more than 90 test cases, more than > one year of work. Today, a new framework for web development was born. It's > name is Brook and its nice features are available for you. > I thank t