[fpc-pascal] Re: Building kernel modules using fpc (for fun)

2011-02-04 Thread Lukasz Sokol
Lukasz Sokol writes: Looks like kernel printk works with fpc varargs : http://wiki.freepascal.org/linux/kernel/module_development#Enhancing_printk Enjoy ;) Lukasz Enjoying enhancements one step at a time ;) ___ fpc-pascal maillist - fpc-pascal@li

[fpc-pascal] wkhtmltopdf - trying use h2pas...

2011-02-04 Thread Marcos Douglas
Hi, I'm trying to use h2pas in wkhtmltopdf's headers... but I'm found many erros. Could you help me to translate the headers to use in Pascal? Command: h2pas libwkhtmltox-0.10.0_rc2\include\wkhtmltox\pdf.h -l wkhtmltox0.dll -o wkhtmltox0.pas -p Enviroment: WinXP SP3 and FPC 2.4.3. Project: http://

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Jonas Maebe
On 04 Feb 2011, at 21:38, Peter Andersen wrote: > Den 04-02-2011 21:27, Jonas Maebe skrev: >> >> On 04 Feb 2011, at 21:24, Peter Andersen wrote: >> That's a very bad way to link libc, because afaik it bypasses all compiler detections for the fact that you are linking to that lib

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
Den 04-02-2011 21:38, fluisgira...@gmail.com skrev: Maybe, you can try the PascalSCADA... Regards, Fabio For the moment i just want a way to copy the data from som DB to a PC. I made 16 DB in the plc with meassument 400 logs in each. These data i want to take out to a PC. So scada is a litt

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
Den 04-02-2011 21:27, Jonas Maebe skrev: On 04 Feb 2011, at 21:24, Peter Andersen wrote: That's a very bad way to link libc, because afaik it bypasses all compiler detections for the fact that you are linking to that library (and doing so requires using different startup code). Inste

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread fluisgira...@gmail.com
Maybe, you can try the PascalSCADA... Regards, Fabio 2011/2/4 Jonas Maebe : > > On 04 Feb 2011, at 21:24, Peter Andersen wrote: > >>> That's a very bad way to link libc, because afaik it bypasses all compiler >>> detections for the fact that you are linking to that library (and doing so >>> re

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Jonas Maebe
On 04 Feb 2011, at 21:24, Peter Andersen wrote: >> That's a very bad way to link libc, because afaik it bypasses all compiler >> detections for the fact that you are linking to that library (and doing so >> requires using different startup code). Instead, either add {$linklib c} to >>

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
Den 04-02-2011 21:04, Jonas Maebe skrev: On 04 Feb 2011, at 20:44, Jeppe Johansen wrote: Try to do a fpc -k-lc testISO_TCP.pas That should instruct the linker to link libc too That's a very bad way to link libc, because afaik it bypasses all compiler detections for the fact that you are li

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
Den 04-02-2011 20:44, Jeppe Johansen skrev: Try to do a fpc -k-lc testISO_TCP.pas That should instruct the linker to link libc too Thanks That was the way to do it. -- / Peter Andersen / Skanderborg / Danmark ___ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Jonas Maebe
On 04 Feb 2011, at 20:44, Jeppe Johansen wrote: > Try to do a fpc -k-lc testISO_TCP.pas > > That should instruct the linker to link libc too That's a very bad way to link libc, because afaik it bypasses all compiler detections for the fact that you are linking to that library (and doing so re

Re: [fpc-pascal] Libnodave on linux

2011-02-04 Thread Jeppe Johansen
Try to do a fpc -k-lc testISO_TCP.pas That should instruct the linker to link libc too Den 04-02-2011 20:27, Peter Andersen skrev: Hello Is there anybody who has compilled the libnodave testprogram "TestISO_TCP.PAS" under linux. If yes could you tell what version of fpc and what options etc.

[fpc-pascal] Libnodave on linux

2011-02-04 Thread Peter Andersen
Hello Is there anybody who has compilled the libnodave testprogram "TestISO_TCP.PAS" under linux. If yes could you tell what version of fpc and what options etc. you have used to it. I have try with version 2.4.2 but got somthing like this: [peter@Dell hmi]$ fpc testISO_TCP.pas Free Pascal Co

Re: [fpc-pascal] Connection reset by peer http://svn.freepascal.org

2011-02-04 Thread ik
On Fri, Feb 4, 2011 at 18:16, Juha Manninen wrote: > ik kirjoitti perjantai 04 helmikuu 2011 16:36:20: > > I've recently started to have the subject's error message on every > attempt > > to use the svn for update or to access the svn using a web browser. > > Is there a known issue with the serve

Re: [fpc-pascal] Re: Correct use of var in function calls?

2011-02-04 Thread Jonas Maebe
On 04 Feb 2011, at 16:25, Bo Berglund wrote: > OK, what will happen if I have a declaration like this: > function TSSCommBuf.Read(var Data: TByteArr): boolean; > as opposed to > function TSSCommBuf.Read(Data: TByteArr): boolean; > > Will they be equivalent or will there be an "extra layer" of p

Re: [fpc-pascal] Connection reset by peer http://svn.freepascal.org

2011-02-04 Thread Juha Manninen
ik kirjoitti perjantai 04 helmikuu 2011 16:36:20: > I've recently started to have the subject's error message on every attempt > to use the svn for update or to access the svn using a web browser. > Is there a known issue with the server, or should I be looking for > something on my machine/network

[fpc-pascal] Re: Correct use of var in function calls?

2011-02-04 Thread Bo Berglund
On Fri, 4 Feb 2011 06:41:24 -0800 (PST), leledumbo wrote: > >FPC is Delphi compatible regarding this. Dynamic arrays are passed by >reference, so you don't need var here. Please be aware when you directly >play with dynamic array contents, since it's actually a pointer to a record >in heap and it

[fpc-pascal] Re: Correct use of var in function calls?

2011-02-04 Thread leledumbo
FPC is Delphi compatible regarding this. Dynamic arrays are passed by reference, so you don't need var here. Please be aware when you directly play with dynamic array contents, since it's actually a pointer to a record in heap and it's reference counted. -- View this message in context: http://f

[fpc-pascal] Connection reset by peer http://svn.freepascal.org

2011-02-04 Thread ik
Hello, I've recently started to have the subject's error message on every attempt to use the svn for update or to access the svn using a web browser. Is there a known issue with the server, or should I be looking for something on my machine/network/ISP ? Thanks, Ido LINESIP - Opening the source

Re: [fpc-pascal] Installing fpc 2.5.1 from svn

2011-02-04 Thread Henry Vermaak
2011/2/4 Rogério Martins : > Hi ! > How can i download and install fpc 2.5.1  from svn in my ubuntu 10.04 x86_64 > ? http://freepascal.org/develop.var#svn You will need a starting compiler, so download and install the latest release. Then execute: make make install (this installs to /usr/local