Hi Jessica,
the link to the forum post doesn't work, can you post the correct link?
And maybe mention the name of the topic, in case the link doesn't work.
Cheers,
Tobias
On Sun, 23 Jan 2022 04:01:46 +
Jessica Jones via fpc-pascal wrote:
> Hi
>
> I need help with porting an open sou
Hi
I need help with porting an open source project from delphi 7 to latest version
of lazarus (target is win64).
Please read all details here
https://forum.lazarus.freepascal.org/index.php/topic,57968.msg431830/topicseen.html
I hope somebody wants to help. I'm a beginner and in the future I wo
Thank you for the help, I'll give it a try!
James
-Original Message-
From: fpc-pascal On Behalf Of Jean
SUZINEAU via fpc-pascal
Sent: Tuesday, September 8, 2020 8:47 AM
To: fpc-pascal@lists.freepascal.org
Cc: Jean SUZINEAU
Subject: Re: [fpc-pascal] Help with TList example
Anothe
> On Sep 8, 2020, at 6:10 PM, James Richters via fpc-pascal
> wrote:
>
> I'm trying to figure out how TList works. I found the code example below by
> doing a search, but I can't compile it, I get Error: Illegal qualifier on
> the line
Do you want an array of pointers (objects allocated
Another way is to declare TMyRec as class instead of record.
In this case, you don't need the dereference operator ^ .
No need of new and dispose, just Create and Free, as for TMyRecList.
I don't know if there is a better performance when you use a record,
but as far as I know, record/object/n
lf Of Tony
Whyman via fpc-pascal
Sent: Tuesday, September 8, 2020 7:21 AM
To: fpc-pascal@lists.freepascal.org
Cc: Tony Whyman
Subject: Re: [fpc-pascal] Help with TList example
Two observations:
1. In Pascal you should use "new" and "dispose" to allocate and deallocate
reco
rg
Cc: Tony Whyman
Subject: Re: [fpc-pascal] Help with TList example
Two observations:
1. In Pascal you should use "new" and "dispose" to allocate and deallocate
record types - not GetMem and FreeMem.
2. MyRec is a pointer type and you should code the line as
MyRec^.Value :=
Two observations:
1. In Pascal you should use "new" and "dispose" to allocate and
deallocate record types - not GetMem and FreeMem.
2. MyRec is a pointer type and you should code the line as
MyRec^.Value := tmp
On 08/09/2020 12:10, James Richters via fpc-pascal wrote:
I'm trying to figure
I'm trying to figure out how TList works. I found the code example below by
doing a search, but I can't compile it, I get Error: Illegal qualifier on the
line
MyRec.Value := tmp;
It's indicating the error is on the V of Value
I tried commenting that line out, then I get the same error
On Tue, October 3, 2017 10:00, Michael Van Canneyt wrote:
> On Mon, 2 Oct 2017, sjc snc wrote:
Hello,
The original poster is not subscribed to the list (although he didn't
mention it in his post, unfortunately), thus I added him to Cc: now.
>> I want to use fpc.exe directly to convert pascal co
On Mon, 2 Oct 2017, sjc snc wrote:
I want to use fpc.exe directly to convert pascal code to executable (*
.exe) file. I do not know how to use it. When it comes to the fpc.exe file,
it tells you to press enter then it disappears automatically. I need to
create a project on visual basic to conv
I want to use fpc.exe directly to convert pascal code to executable (*
.exe) file. I do not know how to use it. When it comes to the fpc.exe file,
it tells you to press enter then it disappears automatically. I need to
create a project on visual basic to convert pascal code to executable (*
.exe),
Sandro Cumerlato wrote
> Hello Fred,
> I compiled it a few years ago, but I don't remember which compiler I
> used, sorry.
>
> IAP is demo itself, but I remember that during my testing it was
> quite unstable.
>
> Maybe you can contact the author (C.W. Budde) directly for more info, good
> luck.
Hello Fred,
I compiled it a few years ago, but I don't remember which compiler I
used, sorry.
IAP is demo itself, but I remember that during my testing it was
quite unstable.
Maybe you can contact the author (C.W. Budde) directly for more info, good luck.
Sandro Cumerlato
On 12 May 2017 at
Hello Sandro.
Sandro Cumerlato wrote
> IIRC a Pascal mpeg decoder is implemented within IAP:
>
> https://github.com/CWBudde/IAP
Wow.
I see the code is for Delphi.
Did you try it with fpc ?
There are no demo for mpeg decoder.
Do you know how to use it ?
Thanks.
Fre;D
-
Many thanks ;-)
Hello Anthony,
IIRC a Pascal mpeg decoder is implemented within IAP:
https://github.com/CWBudde/IAP
Best regards.
Sandro Cumerlato
On May 10, 2017 8:21 AM, "Anthony Walter" wrote:
> Does anyone know if there exists an mp3 to pcm audio data implementation
> written in pascal?
>
> A few days a
Anthony Walter-3 wrote
> Does anyone know if there exists an mp3 to pcm audio data implementation
> written in pascal?
>
> A few days ago the mp3 format became patent free. A such a few OSS people
> are writing native mp3 decoders, for example Red Hat. Now I am wondering
> if
> anyone has written
Does anyone know if there exists an mp3 to pcm audio data implementation
written in pascal?
A few days ago the mp3 format became patent free. A such a few OSS people
are writing native mp3 decoders, for example Red Hat. Now I am wondering if
anyone has written an mp3 decoder (to pcm data) for free
Andrew Brunner wrote on Wed, 01 Jul 2015:
When compiling FPC 2.6.4 bootstrap I determined that :
-OpARMV71 is not a supported option.
-cfVFPV3 is not a supported option.
The correct parameter is -Cfvfpv3, with a capital C.
On make sourceinstall I determined that there is something wrong
w
On 06/29/2015 07:42 AM, Michael Ring wrote:
I think I now remember having the same problem before, can you please
try to build with "-O-" instead of -O2 ?
I've had some success/progress with my Wandboard Quad Revision C.
Thanks for all your help however there are still some issues.
When comp
At least for debian the values for Floating point should be OK for the
Wandboard:
"Currently the Debian armhf port requires at least an ARMv7 CPU with
Thumb-2 and VFP3D16." (https://wiki.debian.org/ArmHardFloatPort)
Michael
Am 29.06.15 um 14:41 schrieb Jonas Maebe:
Andrew Brunner wrote on
I think I now remember having the same problem before, can you please
try to build with "-O-" instead of -O2 ?
In the past the compiler threw an exception in system.pas, perhaps it
now displays an error message.
Michael
Am 29.06.15 um 14:13 schrieb Andrew Brunner:
On 6/28/2015 8:56 AM, Mic
Andrew Brunner wrote on Sun, 28 Jun 2015:
make clean all OPT=-dARMHF DEBUG=1 OS_TARGET=linux CPU_TARGET=arm
CPU_SOURCE=arm
Building crashes at compiling system.pp
as -o /Developer/FPC/rtl/units/arm-linux/dllprt0.o arm/dllprt0.as
as -o /Developer/FPC/rtl/units/arm-linux/cprt0.o arm/cprt0.
On 6/28/2015 8:56 AM, Michael Ring wrote:
I am using parameters suggested on this page (modified for armv7a):
http://michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi/
OPT="-dREVINC -dFPC_ARMHF -CX -CpARMV7A -CfVFPV3_D16 -OpARMV7A -O2
-OoFASTMATH -XX -Xs"
as your error
I am using parameters suggested on this page (modified for armv7a):
http://michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi/
OPT="-dREVINC -dFPC_ARMHF -CX -CpARMV7A -CfVFPV3_D16 -OpARMV7A -O2
-OoFASTMATH -XX -Xs"
as your error seems to be caused by some conditional parsing
On 6/28/2015 4:47 AM, Jonas Maebe wrote:
1) the error you get means that the "fpc" binary is not in your path.
Building FPC always has been and always will be only supported with an
existing, complete installation of the latest FPC release in your path
2) FPC 2.6.4 does not contain ARMHF supp
On 28/06/15 04:01, Andrew Brunner wrote:
> I recently installed fpc-2.6.4 on my Wandboard-Quad for production. I
> have fpc from svn but I get an error when I try to build.
>
> Compiling ARM Free Pascal Compiler...
> make clean all OPT=-O- DEBUG=1 OS_TARGET=linux CPU_TARGET=armhf
> CPU_SOURCE=arm
Hi there,
I recently installed fpc-2.6.4 on my Wandboard-Quad for production. I
have fpc from svn but I get an error when I try to build.
Compiling ARM Free Pascal Compiler...
make clean all OPT=-O- DEBUG=1 OS_TARGET=linux CPU_TARGET=armhf
CPU_SOURCE=arm
make: -iVSPTPSOTO: Command not found
On 2015-03-13 00:03, Graeme Geldenhuys wrote:
> Next part is to extract the line info information to confirm that the
> addresses I now see are indeed correct.
Success!!! :) Finally I have full details of where a failure occurs.
===
tiOPFUnitTestsFPGui.Non
On 2015-03-12 23:15, Graeme Geldenhuys wrote:
> // FPC cross-platform implementation
> function CallerAddr: Pointer;
> begin
> Result := get_caller_addr(get_frame);
> end;
I was told from another source my FPC implementation was incorrect and
should rather be:
[Anybody that could explain the di
Hi,
Could somebody confirm if the Delphi ASM does the same as the FPC code?
This code is used in a unit testing framework to help report the exact
location of where an error was raised. It seems to work well in Delphi,
but not in FPC.
Under FPC it seems to always return the same address, even tho
Hi,
I'm translating porting a Delphi component that uses x86-64 assembly.
So far, most of the asm code compiles and works fine.
The only thing that i could not translate is the .SAVENV directive. See
http://blogs.embarcadero.com/abauer/2011/10/10/38940 and
http://docwiki.embarcadero.com/RADStudi
I get the following error when trying to install “lazmkunit” or
“gecko” using fppkg.
===
C:\lazarus\fpc\2.6.0\bin\i386-win32>fppkg install lazmkunit
An unhandled exception occurred at $004377D5 :
EProcess : Failed to execute fpc.exe -iVTPTO : 2
$004377D5
$0040F953
$00
Anthony Walter wrote on Mon, 02 Apr 2012:
Thanks. Yes I wanted to get fpc (the compiler) installed from sources
rather than lazarus. Your advice somewhat got me there, but now when I
compile the source/units are not found.
cd /home/myusername
sudo apt-get install fpc
mkdir fpc
svn co http://
Thanks. Yes I wanted to get fpc (the compiler) installed from sources
rather than lazarus. Your advice somewhat got me there, but now when I
compile the source/units are not found.
cd /home/myusername
sudo apt-get install fpc
mkdir fpc
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
cd
Anthony Walter wrote on Mon, 02 Apr 2012:
I have installed fpc from sources before but it's been a while and I've
forgotten how to get it done, or perhaps something has changed and need
some help.
When i am trying to do is install and run the latest version of fpc from my
home folder. Here is
I have installed fpc from sources before but it's been a while and I've
forgotten how to get it done, or perhaps something has changed and need
some help.
When i am trying to do is install and run the latest version of fpc from my
home folder. Here is what I did:
# first I got a working version
Help
Best regard, Andi.
On 11 Mar 2012, at 18:00, fpc-pascal-requ...@lists.freepascal.org wrote:
> Send fpc-pascal mailing list submissions to
>fpc-pascal@lists.freepascal.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>http://lists.freepascal.org/mailman/listinfo/fpc
On 3 January 2012 13:04, Malvin wrote:
> Right now i've been trying to build a mysql server using pascal, but i don't
> know where to begin. Can anyone help me?
There are database tutorials on the Free Pascal Wiki site.
--
Regards,
- Graeme -
___
Right now i've been trying to build a mysql server using pascal, but i don't
know where to begin. Can anyone help me?
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Help-tp5116673p5116673.html
Sent from the Free Pascal - General mailing list archive at Nabble.co
On 2/19/2011 21:44, Tomas Hajny wrote:
Alright. It's just a hack, but probably sufficient for your current
needs. ;-) The attached files "fix" Synapse (the released version)
for the OS/2 target. There are limitations related to character set
conversions and time handling (timezones and daylight s
On 19 Feb 11, at 18:34, waldo kitty wrote:
> On 2/19/2011 15:27, Tomas Hajny wrote:
> > On 19 Feb 11, at 14:53, waldo kitty wrote:
> >> i was also incorrect... on the OS/2 box, in Mode: DEBUG with Target: OS/2,
> >> it is giving the following...
> >>
> >> Fatal: Can't find unit UnixUtil used by syn
On 2/19/2011 15:27, Tomas Hajny wrote:
On 19 Feb 11, at 14:53, waldo kitty wrote:
i was also incorrect... on the OS/2 box, in Mode: DEBUG with Target: OS/2,
it is giving the following...
Fatal: Can't find unit UnixUtil used by synautil
i'm using synautil for the space trimming functions and th
On 19 Feb 11, at 14:53, waldo kitty wrote:
> On 2/19/2011 08:45, Tomas Hajny wrote:
> > On Sat, February 19, 2011 06:36, waldo kitty wrote:
> >>
> >> Fatal: Can't find unit dynlibs used by synafpc
> >
> > Yes - unit dynlibs (loading of DLLs on demand) is not supported under
> > GO32v2 for obvious r
On 2/19/2011 08:45, Tomas Hajny wrote:
On Sat, February 19, 2011 06:36, waldo kitty wrote:
Fatal: Can't find unit dynlibs used by synafpc
Yes - unit dynlibs (loading of DLLs on demand) is not supported under
GO32v2 for obvious reasons...
yep! i was also incorrect... on the OS/2 box, in Mode
On 2/19/2011 05:30, Marco van de Voort wrote:
In our previous episode, waldo kitty said:
Fatal: Can't find unit dynlibs used by synafpc
Odd. Dos doesn't support a common dll/shared library format (though some
toolchains do on their own,
right... the closest would be the old OVR/OVL (overlay
On Sat, February 19, 2011 06:36, waldo kitty wrote:
> On 2/18/2011 04:47, Tomas Hajny wrote:
>> On Fri, February 18, 2011 02:24, waldo kitty wrote:
.
.
> ok, as i wrote before, i would attempt to provide more information...
> here's
> what i'm getting with the attached source code when attempting
On Sat, February 19, 2011 02:41, waldo kitty wrote:
> On 2/18/2011 04:47, Tomas Hajny wrote:
>> On Fri, February 18, 2011 02:24, waldo kitty wrote:
>> First of all, you should check whether
>> the missing units are supposed to be platform independent or not.
>
> yes, part of what i'm running into i
In our previous episode, waldo kitty said:
>
> Fatal: Can't find unit dynlibs used by synafpc
Odd. Dos doesn't support a common dll/shared library format (though some
toolchains do on their own, FPC doesn't atm).
But OS/2 does have dlls, and afaik has unit dynlibs, so that is a bit strange.
__
On 2/18/2011 04:47, Tomas Hajny wrote:
On Fri, February 18, 2011 02:24, waldo kitty wrote:
I'm willing to have a look at your current version if you can upload it
somewhere. Synapse has probably not been ported to the OS/2 target and it
possibly uses various platform specific APIs but it should b
On 2/18/2011 04:47, Tomas Hajny wrote:
On Fri, February 18, 2011 02:24, waldo kitty wrote:
on my OS/2 box, i've tried targets of OS2 and OS2 with EMX but both have
failed all kinds of ways... i suspect that it is simply to do with the
paths to the units and include files... i have been able to g
On Fri, February 18, 2011 02:24, waldo kitty wrote:
> On 2/17/2011 18:16, Kevin Jesshope wrote:
.
.
> my next problem is to get it compiling on my OS/2 box with FPC 2.4.2 and
> so far,
> that is not working... complaints of missing units and include files that
> i just
> don't know where to tell
Good luck with the other OSs. At this time I am only doing Win32 but I
am sure there are others here who can help if you ask.
Regards
Kevin Jesshope - In Touch Computer Support
> on my OS/2 box, i've tried targets of OS2 and OS2 with EMX but both have
> failed all kinds of ways... i suspect that
On 2/17/2011 18:16, Kevin Jesshope wrote:
[TRIM]
I think I have that right. I am working from memory now as I do not
have the code before me.
i wanted to thank you again.. you gave me some hints that enabled me to propel
myself much further than i've gone in the last week of floundering... in
Waldo,
You are assigning an OnWalkPart hook procedure to the m1 mimepart you
have created, not the mimepart you actually end up freeing. It does
not look like the tc.ph procedure is called from the m1 mimeparts
(which is what I would expect). If you do need to use the tc.ph on the
individual m1 p
On 2/17/2011 08:32, Kevin Jesshope wrote:
Hi Waldo,
I have now got the units so I can build and test your code properly.
The reason you are getting the exception is that when you free m1 at
line 66 you are not freeing the m1 you created at line 44, but the
subpart belonging to m. This means tha
On 2/16/2011 23:39, Kevin Jesshope wrote:
Hi Waldo,
I don't have the mimepart or synaser units available at the moment so
without actually compiling the code I am not certain the following
observations are the cause of your trouble. They are however somewhere
to start.
1 In line 63 you are chec
Hi Waldo,
I have now got the units so I can build and test your code properly.
The reason you are getting the exception is that when you free m1 at
line 66 you are not freeing the m1 you created at line 44, but the
subpart belonging to m. This means that when you finally free m it is
trying to fr
Hi Waldo,
I don't have the mimepart or synaser units available at the moment so
without actually compiling the code I am not certain the following
observations are the cause of your trouble. They are however somewhere
to start.
1 In line 63 you are checking to see if m1 is nil to see if the objec
so i take it, from the dearth of replies, that no one on this list uses synapse
or its mime library?
i've reduced/stripped the code to produce the attached .pas file... while i now
do not get a line number any more (which i also do not understand), at least i
can more easily see now that the
i'm trying to work with the synapse mime library but am running into a bit of a
problem... i'm an old procedural type coder from the TP3 to TP6 days... it has
been a long time since i've done much of anything with objects and i've
forgotten a lot more than i remember... i've not done any delph
Hello FPC-Pascal,
Tuesday, January 11, 2011, 12:21:19 PM, you wrote:
PFP> You should be able to use the 32-bit version of GoRC
PFP> there is no need of a 64-bit version, as the compiler
PFP> adds the "/machine amd64 " option when calling it
PFP> for win64 OS target.
PFP> Could you test this ou
> -Message d'origine-
> De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-
> boun...@lists.freepascal.org] De la part de José Mejuto
> Envoyé : mercredi 5 janvier 2011 17:42
> À : FPC-Pascal users discussions
> Objet : Re[4]: [fpc-pascal] Help
Hello FPC-Pascal,
Wednesday, January 5, 2011, 4:50:20 PM, you wrote:
DB> On Jan 5, 2011, at 12:07 PM, José Mejuto wrote:
>> Anyway I was looking for mingw binutils for win64 in the website
>> without success, only win32 builds.
>> http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GNU-
On Jan 5, 2011, at 12:07 PM, José Mejuto wrote:
> Anyway I was looking for mingw binutils for win64 in the website
> without success, only win32 builds.
> http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GNU-Binutils/binutils-2.21/
try: http://mingw-w64.sourceforge.net/
Darius___
Hello FPC-Pascal,
Wednesday, January 5, 2011, 10:26:12 AM, you wrote:
VS> 2011/1/5 Marco van de Voort :
>>> This snapshot is missing the cmp.exe file, so I had used the win32
>>> one. After an error about not found as.exe I had used the win32
>>> version too, but now I'm stuck at an ld.exe proble
Hello Darius,
Wednesday, January 5, 2011, 12:36:40 AM, you wrote:
DB> Doesn't mingw64 provide as and ld?
Yes but everywhere in the wiki binutils is referenced, mingw* is named
only for crosscompiling and with the "known incompatibility" about
different ports (mingw, cygwin, ...) I was looking fo
In our previous episode, Vincent Snijders said:
> >>
> >> I would not build the fp ide.
> >
> > Does that remark apply to 2.4.x or 2.5.1?
>
> 2.5.1, because AFAIK, Pierre's work that requires the external linker
> on win64 is done in trunk only and not yet merged to 2.4.2.
Because I made a makefi
2011/1/5 Marco van de Voort :
>>
>> I would not build the fp ide.
>
> Does that remark apply to 2.4.x or 2.5.1?
2.5.1, because AFAIK, Pierre's work that requires the external linker
on win64 is done in trunk only and not yet merged to 2.4.2.
Vincent
___
In our previous episode, Vincent Snijders said:
> >> This snapshot is missing the cmp.exe file, so I had used the win32
> >> one. After an error about not found as.exe I had used the win32
> >> version too, but now I'm stuck at an ld.exe problem. The win32 version
> >> of ld.exe does not have a "pe
2011/1/5 Marco van de Voort :
>> This snapshot is missing the cmp.exe file, so I had used the win32
>> one. After an error about not found as.exe I had used the win32
>> version too, but now I'm stuck at an ld.exe problem. The win32 version
>> of ld.exe does not have a "pei-x86-64" target so the ma
In our previous episode, Jos? Mejuto said:
>
> I'm stuck trying to build fpc win64 svn. As a bootstrap I'm using
> 2.4.3 from a snapshot at http://www.hu.freepascal.org/lazarus/
Strictly speaking only 2.4.2 will do.
> This snapshot is missing the cmp.exe file, so I had used the win32
> one. Aft
Hello FPC-Pascal,
I'm stuck trying to build fpc win64 svn. As a bootstrap I'm using
2.4.3 from a snapshot at http://www.hu.freepascal.org/lazarus/
This snapshot is missing the cmp.exe file, so I had used the win32
one. After an error about not found as.exe I had used the win32
version too, but no
On Sun, Oct 10, 2010 at 1:09 PM, Mark Morgan Lloyd
wrote:
> Could you suid it to root or to an appropriate group? I've not tried this
> for a Pascal/Lazarus program and don't know what the precise rules are for
> port usage (i.e. whether the user has to be root or using the root group is
> suffici
Andrew Brunner wrote:
I'm needing help to take my Lazarus app, elevate process to root
(using GUI prompt like GKSU) and I want to drop back down to the
user's level after port binding and listening.
Ubuntu has port restrictions for low port numbers. I'm developing a
platform that happens to use
On 08.10.2010 18:27, Andrew Brunner wrote:
I'm needing help to take my Lazarus app, elevate process to root
(using GUI prompt like GKSU) and I want to drop back down to the
user's level after port binding and listening.
Ubuntu has port restrictions for low port numbers. I'm developing a
platfor
I'm needing help to take my Lazarus app, elevate process to root
(using GUI prompt like GKSU) and I want to drop back down to the
user's level after port binding and listening.
Ubuntu has port restrictions for low port numbers. I'm developing a
platform that happens to use ports for HTTP, XMPP, e
Thanks to all that replied. My C/C++ is a bit rusty. :)
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists
Am 14.09.2010 11:50, schrieb Graeme Geldenhuys:
Hi,
In a C++ method as shown below, does the '... return True;' immediately
exit the HandleClientMessage method, or will it still continue processing
the remainder of the method (just exiting the current code block)?
-
Hi,
In a C++ method as shown below, does the '... return True;' immediately
exit the HandleClientMessage method, or will it still continue processing
the remainder of the method (just exiting the current code block)?
int OXMainFrame::HandleClientMessage(XClientMe
On Tue, 14 Sep 2010 11:50:31 +0200, Graeme Geldenhuys wrote about
[fpc-pascal] Help translating C++ to Object Pascal:
> In a C++ method as shown below, does the '... return True;'
> immediately exit the HandleClientMessage method, or will it still
> continue processing the rema
On Tue, 14 Sep 2010 11:50:31 +0200
Graeme Geldenhuys wrote:
> Hi,
>
> In a C++ method as shown below, does the '... return True;' immediately
> exit the HandleClientMessage method
Yes.
R.
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad
Hi,
Can you help me creating a Makefile to replace this ugly "build.sh" script ?
# cat build.sh
#!/usr/bin/env bash
PROJECT=nepudf
UIB_ROOT=../uib/source
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
# 64-bit stuff here
FB_ROOT=/usr/lib64/firebird/2.1
fpc -B -dFB21 -fPI
That's fine, thanks. It's between integers and floating points actually, so
declaring the floating point one with Extended is better, I guess.
--
View this message in context:
http://old.nabble.com/Help-creating-generic-class%3A-division-problem-tp28140305p28147009.html
Sent from the Free Pascal
If it is only between int and double, maybe this will help
have on overload function
class function TMedian.Div(Value, Divider: Integer): Integer; // Result
:= Value div Divider
class function TMedian.Div(Value, Divider: Double): Double; // Result
:= Value / Divider
then the compiler choose
consider the following generic class declaration:
{$mode objfpc}{$H+}
type
generic TMedian = class
class function Find(x: array of T): T;
end;
class function TMedian.Find(x: array of T): T;
var
i, j, Middle: Integer;
Temporary: T;
begin
// Use truncated selection sort to find medi
> 1. no record packing for pascal specified
> 2. no record packing for C specified
> 3. does not show how the file on the pascal side is opened, mostly
>to check if the ,1 in reset(f,1) is not missing
3 OK
1 and 2, since the original C code doesn't specify it either, should I use
{$packrecord
In our previous episode, leledumbo said:
>
> corresponds to this C code:
1. no record packing for pascal specified
2. no record packing for C specified
3. does not show how the file on the pascal side is opened, mostly
to check if the ,1 in reset(f,1) is not missing
___
On Tue, 2 Feb 2010, leledumbo wrote:
Does the BlockRead below:
type
TRGBQuad = record
rgbBlue: GLubyte;
rgbGreen: GLubyte;
rgbRed: GLubyte;
rgbReserved: GLubyte;
end;
...
var
FileHandle: File;
BytesRead: GLuint;
FColorPalette: PRGBQuad;
NumberOfColours: GLuint;
...
Bloc
Does the BlockRead below:
type
TRGBQuad = record
rgbBlue: GLubyte;
rgbGreen: GLubyte;
rgbRed: GLubyte;
rgbReserved: GLubyte;
end;
...
var
FileHandle: File;
BytesRead: GLuint;
FColorPalette: PRGBQuad;
NumberOfColours: GLuint;
...
BlockRead(FileHandle,FColorPalette^,
Played around a bit, but realised the job was too much for me.
I have decided to use some of the tools readily available and execute them
when required.
tcpdump being one of the tools, if run with the *-c* flag, it will capture
packets until it is interrupted by a SIGINT or SIGTERM signal or the
sp
OK I think I know the reason why 'ansichar'
Just did a bit of code to list the net adaptors in a combobox and All I get
is symbols (??? and ?...@?). I think I read somewhere Windows may save adaptor
names in unicode since windows 2000 (maybe).
procedure TForm1.FormCreate(Sender: TObject);
begin
Fz
In our previous episode, lloyd thomas said:
> I have managed to get the zniffer wrapper to compile, but I am worried that
> using {$MODE delphi} may not be the best way to produce optimized code.
No problem. fpc modes are mostly about syntax, not optimization. If the code
is delphi in origin it is
I have managed to get the zniffer wrapper to compile, but I am worried that
using {$MODE delphi} may not be the best way to produce optimized code.
Also I have seen other libpcap where they use ansichar instead of char. Is
there a reason for this?
function Pcap_getAdapternames(Delimiter:char;var E
No Joy, I get exactly the same error. But putting the following at the start
of the unit got me to the next error (which I managed to fix ptr = pointer)
{$ifdef FPC}
{$MODE delphi}
{$endif}
2010/1/6 ik
> Try the following (see inline for the answer):
>
>
> On Wed, Jan 6, 2010 at 13:30, lloyd th
Try the following (see inline for the answer):
On Wed, Jan 6, 2010 at 13:30, lloyd thomas wrote:
> Well I have made a start using someone elese libpcap inplementation, but
> have bump into my first issue and because of my lack of skill I am not sure
> how to code round it. Any Ideas?
> I get th
Well I have made a start using someone elese libpcap inplementation, but
have bump into my first issue and because of my lack of skill I am not sure
how to code round it. Any Ideas?
I get the following errors
PlibCap\Pcap.pas(207,13) Error: Illegal qualifier
PlibCap\Pcap.pas(207,13) Hint: may be p
use libpcap (and bind it to FPC and share with us all :)) and then you can
sniff packets (that's the easiest way I know).
Ido
http://ik.homelinux.org/
On Tue, Jan 5, 2010 at 16:48, lloyd thomas wrote:
> Also came across this which uses pcap, but seems to be delphi only
> http://www.magsys.co.u
Also came across this which uses pcap, but seems to be delphi only
http://www.magsys.co.uk/delphi/magmonsock.asp
is there something similar for fpc?
2010/1/5 lloyd thomas
> OK. I wish to monitor and record calls between a SIP endpoint and SIP
> Gateway. At the moment I am doing that by connecti
OK. I wish to monitor and record calls between a SIP endpoint and SIP
Gateway. At the moment I am doing that by connecting the SIP endpoint and my
machine to an ethernet hub so that I can see all the traffic.
In the first instance I just need to correctly capture, read and interprete
the SIP messag
1 - 100 of 212 matches
Mail list logo