On 16-10-2024 11:07, Nikolay Nikolov via fpc-pascal wrote:
On 10/16/24 2:07 AM, Rainer Stratmann via fpc-pascal wrote:
At the Lazarus Congress in Cologne in October 2024, it ended up being
very
interesting. An important question came up.
Why are no new users coming to Lazarus/Freepascal?
Wh
On 3 May 2023 at 11:35, José Mejuto wrote:
> El 03/05/2023 a las 8:48, Carsten Bager via fpc-pascal escribió:
> > I am trying to change the file date on a SYMLINK (not the file that the
> > link points to).
> > Does anyone know if there is a method for this under
I am trying to change the file date on a SYMLINK (not the file that the link
points to).
Does anyone know if there is a method for this under Windows.
Carsten
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-b
On 31 Aug 2020 at 9:38, Bo Berglund via fpc-pascal wrote:
> On Fri, 21 Aug 2020 21:03:31 +0200, Bo Berglund via fpc-pascal
> wrote:
>
> >Instead I need to add a thread for reading data so I can have an event
> >driven reception of data. It would read available data and fire off a
> >NotifyEven
On 14 Aug 2020 at 14:21, Bo Berglund via fpc-pascal wrote:
> Anyway I have published scripts thatinstall Lazarus *and* FPC on RPi
> units from scratch, everything needed is done inside the script.
> Now I have stripped the fpc/lazarus script and only kept what is
> needed for fpc itself.
> It is a
The links to download the Raspberry PI version, is not working.
Does anyone know if there will be a PI version in the future
I have tried on the Hungary and Canada site.
The distribution in the archive below is for an EABIHF, compiled on RaspBerry 1
arm-linux system (for armv6 cpu).
ftp://mirror
Hi
This Function works on Intel platforms but when compiled to Arm (Linux) the
right side is
calculated as a LongWord.
Const
cSecondsPerDay=86400.0;
cTimeDate2UnixFiledateStart=25569.0;
cUnixFileDateDateTimeStart=cSecondsPerDay*cTimeDate2UnixFiledateStart;
Function UnPackUnixTime2DateTime
embler and then (if necessary) call an
normal pascal
procedure. This way I can controle how stack and memory issues are handled.
I find i hard to believe that the compiler 2.71 can fulfil all your needs in
that area.
Regards
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650
Have a look at this file
http://freepascal.dk/files/fpcarm7.tgz
This is a 2.05 compiler, but I am still using it in produktion.
This is an old package that uses LPC2138 as target.
Now a days we use LPC2368 and LPC 2387 as target.
The compiler produce good code.
Regards
Carsten
> On Wed, October 2
> Am 24.07.2013 09:07, schrieb Carsten Bager:
> > The {$LONGSTRINGS OFF} directive is given at the beginning of the program,
> > and that
> > eliminates any problems with "long strings" using the 2.05 compiler. That
> > does not seem to
> > work wit
> > The {$LONGSTRINGS OFF} directive is given at the beginning of the program,
> > and that
> > eliminates any problems with "long strings" using the 2.05 compiler. That
> > does not seem to
> > work with the new compiler.
> >
> > Is there a way around this problem?
> >
> > Carsten
>
> Did you tr
I am using the FPC compiler to compile embedded ARM7 code (LPC21xx / LPC23xx).
For this purpose, I use the 2.05 compiler, and it is working without problems
at all.
However, because we are using the 2.62 compiler on other platforms, I have
compiled a new
system unit for the ARM7 platform with the
For some years ago I had a similar problem.
I solved it by forcing the use of specific libs.
See my old test programme below.
Carsten
> lcd_test.dpr: warning: 31: "crti.o" not found, this will probably cause a
> linking failure
> lcd_test.dpr: warning: 31: "crtbegin.o" not found, this will pro
My code was just an example, to illustrate what I was aiming at. It is not
actually used.
But I think you have a point
Carsten
> Why not just skip all the encoding uncertainity of strings and use an
> array of byte/char?
>
> It'll probably be a lot faster too
_
> Of course the OS is free to use the mapped hardware RAM address in a way
> that for DMA the string content might come in separate chunks.
>
> Is this what you mean ?
>
> - Michael
Yes
Thanks
Carsten
___
fpc-pascal maillist - fpc-pascal@lists.fre
t';
if Sum(@s[1],length(s)) = 0 then
halt(0);
End;
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
___
fpc-pascal maillist - fpc-pascal@lists
HI
I use this unit together with Lazarus/FPC.
I write and test my programs on a normal PC, and then recompile to WinCE.
www.cilico.us/product/handheld-pda.html
Carsten
>
> Hi All,
>
> I need to identify a reliable portable device that I can program in
> FPC-Pascal.
>
> This device could be
HI
I use this unit together with Lazarus/FPC.
I write and test my programs on a normal PC, and then recompile to WinCE.
http://www.cilico.us/product/handheld-pda.html
Carsten
>
> Hi All,
>
> I need to identify a reliable portable device that I can program in
> FPC-Pascal.
>
> This device
HI
I use this unit together with Lazarus/FPC.
I write and test my programs on a normal PC, and then recompile to WinCE.
http://www.cilico.us/product/handheld-pda.html
Carsten
>
> Hi All,
>
> I need to identify a reliable portable device that I can program in
> FPC-Pascal.
>
> This device
On my Nokia phone I use
http://sourceforge.net/projects/midletpascal/
Carsten
> Hi,
>
> If your devices are Embedded Linux/ARM or WinCE, you can use fpGUI
> Toolkit. If you use Nokia, Android, Win7, then you need to look at other
> solutions.
>
> Regards,
> - Graeme -
>
> --
> fpGUI Tool
HI
I use this unit together with Lazarus/FPC.
I write and test my programs on a normal PC, and then recompile to WinCE.
http://www.cilico.us/product/handheld-pda.html
Carsten
>
> Hi All,
>
> I need to identify a reliable portable device that I can program in
> FPC-Pascal.
>
> This device
Done
Carsten
>
>
> On 16 Feb 2012, at 11:28, Carsten Bager wrote:
>
> If you use this link you can get the "fpc-2.2.0.i386-linux.tar" file
>
> http://freepascal.dk/files/fpc-2.2.0.i386-linux.tar
>
> That file should be taken offline, for the reason ex
**
> Denne mail er blevet scannet for virus af TDC Mailfilter.
> ********
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
_
gt;
> > -Message d'origine-
> > De : fpc-pascal-boun...@lists.freepascal.org
> > [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part
> > de Carsten Bager
> > Envoyé : vendredi 24 juin 2011 08:53
> > À : FPC-Pascal users discussions
> > Objet :
m.pp from
> > the process STARTUPINFO structure. Don't know why fpc starts
> > the process with SW_HIDE.
> > Change the line to
> > ShowWindow(Window, SW_RESTORE);
> > and the window will display;
> >
> > Ludo
> >
> > > -Message d
Hi
I have this test program. It compiles and runs (shows) under Delphi (5.0).
I can compile (and run it) it under FPC (2.4.4) but it does not show anything.
I can see it in
the Windows Job list -> Processes but not under Programmes.
Anybody have a hint.
Regards
Carsten
C:\FPC\2.4.4\bin\i386-w
I have a data record ("sVar_typ") compiled with the 2.2.5 arm compiler. It has
the size of
32728 byte.
Now I try to compile with the 2.4.5 arm compiler it has the size of 32736 byte.
I write the addresses of the variables in the record, they have not changed.
It looks like the compiler just adds
If I do this on a Linux machine
(Free Pascal Compiler version 2.4.2 [2010/11/08] for i386)
WriteLn(DateTimeToFileDate(Now));
WriteLn(trunc((now-EncodeDate(1970,1,1))*86400));
I get this
1305786833
1305794033
There is a difference of 7200= 2 hours.
Is this correct?
I would not expect a di
> Well, you should probably mention that this replacement solution is not
> portable to big endian platforms / targets.
>
> Tomas
If one want to write portable code, what would be best, or would both work on a
big endian
platform.
Carsten
var
b:byte;
i:LongInt;
b := i and 255;
b:= i m
Hi
Is there a reason why the lo function returns the lo word from a longint in FPC
and not the lo
byte as in Delphi.
Regards Carsten
--
Delphi 5 Doc
--
function Lo(X): Byte;
Description
Lo returns the low-order Byte of the argument X as an unsigned value.
> How do i get command line vars? i tried GetENV() but it didn't understand
> GetEnv() (which unit is
> it in?)
Here is a small cgi program. Comments are in Danish but I hope you can get the
meaning.
Carsten
{Program version 1.00}
program listdir2html;
{LONGSTRINGS OFF}
{$INFO +-
I have a problem with the new 240 compiler.
I get errors when calling functions in the sysutils unit.
I have tested the 251 compiler, and it was exactly the same.
I am normally using the 224 compiler, and it works fine.
Anybody have a hint.
Carsten
Example:
program hw1;
uses
sysutils;
Typ
I have 2 lines of code
1 I allocate memory
2 I read from the screen (Nano-X) and save it in the "BitMapArray".
Can I do this or can I not be sure that the memory is in one block.
setlength(BitMapArray,Width*Height);
GrReadArea(TNxWindow(window).w,Left,Top,Width,Height,@BitMapArray[0]);
Carsten
eof(DataBuffer_typ));
if Sio_bufSize<>0 then
SendPacket(Sio_Buf,Sio_bufSize);
End;
Procedure SioListen_typ.SendCh(c:char);
Begin
serial.SerWrite(sio,c,1);
End;
Begin
Writeln('Unit (',{$I %FILE%}:21,') Unit Version:',cUnitVersion,' compiled at
',{$I %TIME
If I create a TCP socket with
fpSocket(AF_INET,SOCK_STREAM,PF_UNSPEC);
fpBind(lSock, @sAddr, sizeof(sAddr))<0 then
fpListen(lSock, cMaxConn)<0 thenand
And waits for connections with
fpAccept(lSock, @nSockAddr, @nLen);
and when a connection comes in I wait for a new one (in a new thread) wit
In the old days you could write
exec(C:\DOS\COMMAND.COM',' COM1');
and then get access to the command prompt via a serial interface
Could someone give me a hint how to do this in a Linux environment?
Carsten
___
fpc-pascal maillist - fpc-pascal@lists.
\i386-win32;c:\pp\bin\Arm
make clean all OS_TARGET=linux CPU_TARGET=arm BINUTILSPREFIX=arm-linux-
This works fine with the 222 and 223 version
Regards
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
> Change to
>
>Function rSafeVar: SafeVar_typ;
Joao Morais
Sorry about that. I pasted the wrong code in the email. I have
already changed that. It does still not compile after the change.
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
T
Function TSafeVar.rSafeVar(data:SafeVar_typ):SafeVar_typ;
Begin
WriteLn('Read');
End;
Begin
SafeVar:=TSafeVar.create;
SafeVar.data.week:=1;
SafeVar.free;
End.
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 978
> I doubt it really is a samba problem, more some problem that certain
> heuristics that cause the libctype detection are somehow different (do you
> happen to use -Xd on the samba drive?)
Yes and on the local drive. Every thing is the same (I copy everything to the
local drive).
>
> Anyway, a
When moving from the 205 compiler to the 222 compiler I have got a strange
problem with
the cross compiler for Windows
---
(Free Pascal Compiler version 2.2.2 [2008/08/26] for arm)
---
When I compile a project on a Samba drive it works ok.
But when I copy everything (compiler, l
> The FileDate format differ on unix and windows. UnpackTime uses the
> windows format. You need another function for unix.
Is the file date on Unix the number of seconds since 00:00:00 January 1,
1970.
Carsten
___
fpc-pascal maillist - fpc-pascal@l
WriteLn(strPackTime(DateTimeToFileDate(now)));
WriteLn(DateTimeToStr(FileDateToDateTime(DateTimeToFileDate(now))))
;
End.
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
__
> Zitat von Carsten Bager <[EMAIL PROTECTED]>:
>
> > When I do this
> >
> > Free Pascal Compiler version 2.2.2 [2008/07/29] for i386
>
> Which OS?
Linux
>
> > -
> > Program tt;
> > uses dos,
> > sysutils
When I do this
Free Pascal Compiler version 2.2.2 [2008/07/29] for i386
-
Program tt;
uses dos,
sysutils;
function strPackTime(t:longWord):shortstring;
var
dt:Datetime;
begin
UnpackTime(t,dt);
strPackTime:=intToStr(dt.day)+'/'+
intToStr(dt.month)+'-'+
A have a unit (uSafeVar) with an object. The object has a property "data" of
the type
"SafeVar_typ"
If I do this it works (wSafeVar is called)
var
p:SafeVar_typ;
begin
p.d:=111;
SafeVar.data:=p;
end
If I do this it dos not work but it compiles (wSafeVar is not called)
begin
SafeVar.d
> Did you add cwstring to the uses clause of your program ? Without it,
> you won't have access to the recoding routines.
I do not have to do that the compiler it self calles fpc_widestr_to_ansistr
witch then calles Wide2AnsiMoveProc in this proces I lose the the russian
translation.
Carsten
Hi
I am using the gnugettext unit on Linux (Arm9), but when using Russian as
translated language I have a problem. All Russian chars are returned as "?"
I believe the problem is in the system unit, everything looks fine (debug
output from gnugettext) but it looks like when translated in gettext
Is there another way writing this without activating Delphi mode.
Carsten
type
tKeypressed=function:boolean;
Var
pKeypressed:tKeypressed;
Function Keypressed:boolean;
Implementation
Function Keypressed:boolean;
Begin
if pointer(pKeypressed)<>nil then
Keypressed:=pKeypressed
else
ONTWAIT);
end;
sleep(1000);
if c='s' then fpSend(uSock,@WelcomeStranger,18,MSG_DONTWAIT);
SocketError_:=SocketError;
Writeln('->',SocketError_,FpRecv_:10);
until (c=chr(27)) or ((SocketError_<>0) and ((SocketError_<>
I have a simple TCP program and I want to see when the client breaks the
line.
With the 205 compiler this is not a problem SocketError tells me, but with
the 220 compiler nothing happens. Do I have to do something else?
When compiled to 386 SocketError always returns 0, but when compiled to
ARM
Hi
"Sock2Text" is marked as deprecated
what should I use as replacement (I can not find a equivalent).
Regards
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
w
Hi
I would like to have the possibility to log in to my program via TCP and use
the crt unit. (I monitor a connection attempt on a specific port number, and
opens a line when it is necessary)
I can easily create some code where input output is redirected to the
remote terminal but the crt uni
> I need to share memory between applications and wanted to know if FPC
> has this implemented. Today I use the windows "CreateFileMapping"
> function, but this is windows specific.
Here is a parcel of a program where I use sheared memory on Linux
Regards
Carsten
-
> Does anyone have a simple (very simple) and basic way of connecting to a
> mysql database, reading a record and writing a record into a table? That's
> all I need to get started; or if there is some documentation somewhere on
> how to use the unit id be grateful.
Here is an example I found some
> Does anyone here have any experience with using FreePascal using ARM
> microprocessor and drawing graphics?
I have being using nano-x and uLibc on an Arm-9 bord.
You can get some test code here.
http://www.freepascal.dk/files/fpcarm9.tgz
The code is not meant to bee released in public yet (not
:21/02-2008 13:53:17:944
UTC:21/02-2008 12:53:17:00
221 compiler on Arm 9
LTC:21/02-2008 13:54:41:925
UTC:21/02-2008 12:56:15:00
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
:21/02-2008 13:53:17:944
UTC:21/02-2008 12:53:17:00
221 compiler on Arm 9
LTC:21/02-2008 13:54:41:925
UTC:21/02-2008 12:56:15:00
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
>
> On 21 Feb 2008, at 09:15, Carsten Bager wrote:
>
> > My problem is that I get UTC time with the 220 compiler on the Arm
> > platform, when using gettime, now ---.
> > If i compile my program "lt" (local time) with the 220 compiler on
> > Li
>
> Can you post straces?
I can not run strace on my Arm9 platform. Is there another way.
CarstenMed venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
___
fpc-
;:'+
intToStr0(dt.Second,2)+':'+
intToStr0(dt.MilliSecond,2);
End;
Begin
GetLocalTime(SystemTime);
WriteLn('LTC:',SystemTimeToStr(SystemTime));
GetUtcTime(SystemTime);
WriteLn('UTC:',SystemTimeToStr(SystemTime));
End.
Med venli
> I guess it is linker script related. Unfortunatly FPC comes with an
> integrated linker script however it seems there is no generic one.
>
> Try to compare the various linker scripts to narrow it down. From ld you
> get it with
> ld --verbose
> From FPC you get it when compiling with -s:
> it's
I have built a Win32 ppcrossarm.exe (2.20) compiler. The compiler works
ok. The output from the Linux and the Win32 compiler when I use the -sh
directive is exactly the same. The downside is I have some problems
finding a Win32 linker that I can use.
If I compile a Hallow World program, it work
platform).
Regards
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org
> Try to build with -s and examine/post the ppas.sh and link.res file.
This is how the ppas.sh and the link.res file looks like. To me it looks ok.
Do you think it is an error in the linker.
Carsten
#!/bin/sh
DoExitAsm ()
{ echo "An error occurred while assembling $1"; exit 1; }
DoExitLink ()
{
> > Install a newer version of ld which does support the --gc-sections flag.
I found a Debian tool chain (http://www.emdebian.org/ --
binutils-arm-linux-gnu_2.18-
1_i386.deb). It works ok, but the linker gives some warnings
/Fpc/ArmBin/ld: skipping incompatible /usr/lib/libgcc_s.so when searc
> Install a newer version of ld which does support the --gc-sections flag.
Do you know where to find a newer version of the linker
(binutils for arm linux)
Regards
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5
I have tested the 2.20 compiler for Arm. It looks good, a problem I had with
threads has disappeared, but (there is always a but) now I have another
problem.
The bindery file is huge (Normally 160KB now 950KB. I presume that smart
linking dos not work). I also get this warning form the linker "l
In the cprt0.as file (used when linking with libc in Arm/Linux) line
74 says
/* load argv
mov a3, sp
I think it should be
/* load argv */
mov a3, sp
Now the "mov a3, sp" instruction is included.
Maybe this parameter is only used when starting C programs, but ...
Is there anyboddy how knows where to find a startup file (cprt0.as) for
uclibc (Arm on linux).
Carsten
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> On 31 Jul 2007, at 14:13, Carsten Bager wrote:
>
> > I get this warning when compiling a project.
> > It compiles fine with the 213 compiler
> >
> > Could this be a problem with the new compiler?
>
> You probably simply need a newer version of ld.
I
I get this warning when compiling a project.
It compiles fine with the 213 compiler
Could this be a problem with the new compiler?
Carsten
Free Pascal Compiler version 2.1.4 [2007/06/08] for arm
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for ARM
/Fpc/ArmBin/ld: Warning: gc-se
en
exit;
c := Sptr - (stack_size + STACK_MARGIN);
if (c <= StackBottom) then
begin
StackError:=true;
HandleErrorFrame(202,get_frame);
end;
end;
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 543
In the small threads program below I force a runtime error in a thread.
How do I get access to the output from the thread when it stops?
This program does not write anything to the terminal when the thread stops.
Carsten
---
program testthread
ger32;
Var
buffer:array[0..79] of char;
Begin
if f.bufPos<>0 then
begin
buffer:=pchar(f.bufptr);
serial.serwrite(prn,buffer,f.bufPos);
end;
f.bufPos:=0;
rs232DeviceInout:=0;
End;
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +
> 10 - 5 = 5
> This is a different issue; 10-5 should not overflow regardless of the
> type that is used for the calculation.
> Daniël
I tried to compile and run with the
2.1.3 compiler (arm and i386)
Both executables did run without runtime errors but the compilers gave a
warning.
The same progr
led, 0.4 sec
-
./word32testFpc/Pas/Linux/Test/Word32 #
a=10 b=5
Resultat : 5
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
___
fpc-pas
iling word32test.pp
Assembling word32test
Assembling with smartlinking word32test
/Fpc/ArmBin/ar: creating libpword32test.a
Linking word32test
19 Lines compiled, 0.5 sec
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 F
200308251
led.pas(115,6) Fatal: Compilation aborted
Is there a way around this problem?
Regards
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
___
fpc-pascal
heck errno if popen returns -1
The FPC manual (REFERENCE FOR UNIT ´UNIX´) 32.3.20 dos not
indicate this, (The code is a direct copy from the manual).
I have corrected it, but it did not change anything.
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650
I am trying to use the "Popen" function in Read mode.
I first tried the example (---Write---) from the manual (see beneath).
The POpen gives an error 25 (Not a typewriter) but it looks like it works.
I try to do almost the same (---Read---)to read the output, but I cannot get
this to read
anythin
On an Arm/Linux platform I call an external program (to calibrate a touch
panel) with "Exec". That works OK. I can force the external program to
return some values to the console. Is there a way I can pick up this output
and read it from my program?
Carsten
___
for the ELF platform.
Do you think that this would conflict with using the compiler for embedded
programming? (Arm 7).
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
Where can I read what's new in the coming 2.1 version.
Carsten
Med venlig hilsen
Carsten Bager
BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk
___
fpc-pascal maillist - fpc-p
<mailto:fpc-pascal-
[EMAIL PROTECTED]>
>
>
> Op Tue, 12 Dec 2006, schreef Carsten Bager:
>
> > The fpc program looks after the c lib loader. a command like this takes
> > care of that
> >
> > ln -sf /lib/ld-uClibc-0.9.27.so /lib/ld-linux.so.2
> >
>
I have written a small program that uses threads. It works on a 386 Linux,
but I have some problems on the Arm Linux platform.
The program routes a TCP connection to a serial port and if the TCP is not
in use it can route UDP packets to the serial port return answers.
The "sockets.Recv" return
utest0s1.o
program ptest;
uses utest;
begin
Test;
end.
--
unit utest;
{$SMARTLINK ON}
interface
Procedure Test;
implementation
Procedure Test;
Begin
WriteLn('Test');
End;
end.
-----------
c:\p
d, 0.7 sec
--
Carsten Bager
Bøvlingbjerg El-automatik
Brørupvænget 10
7650 Bøvlingbjerg
Tlf. +4597885222 Fax +4597885434
www.beas.dk
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.free
If you run this small program on a Linux machine (386/Arm), you
will se that if you presses the keys so 2 or more lines are written and
then presses the 'a' key that writes out WhereX and WhereY. It will
write out the right position on the first line (80,1).
If I do the same in windows the cursor d
> I think you'd better use shared memory or pipes or so.
> If the communication is one-way, have a look at the simpleipc units.
>
> Michael.
I have used the ipc functions, and they did the trick
Thanks
Carsten
___
fpc-pascal maillist - fpc-pascal@l
I have 2 FPC programs running on a Linux machine, is there an easy
way to exchange a few data between these programs (I do not want to
use disk operations). I was thinking of using environment variables,
but I cannot find a way to change environment variables from a
program.
Does anybody have a
>
> On 31 aug 2006, at 13:13, Carsten Bager wrote:
>
> > Here is 2 examples of how the fpc compiler dos when comparing a
> > string constant with a pchar . The first is compiled with the 204
> > compiler and second one is compiled with the 202 compiler.
>
> Th
> Hi,
>
> sorry, I cannot answer your question, but may I as:
>
>
> Am Donnerstag, den 31.08.2006, 13:13 +0200 schrieb Carsten Bager:
>
> > I am using the compiler on an embedded Arm 7 platform and Ansi
> > strings is not an option.
>
> How can y
Here is 2 examples of how the fpc compiler dos when comparing a
string constant with a pchar . The first is compiled with the 204
compiler and second one is compiled with the 202 compiler.
I am using the compiler on an embedded Arm 7 platform and Ansi
strings is not an option.
I want to force the 2
> I have downloaded the 204 source code and compiled a cross
> compiler to Arm to run on a Windows PC
>
> When compiling some code that has worked with the 202 compiler I
> get this error:
>
> Assembling led
> Assembling with smartlinking led
> L:\FPC\ARMBIN\AR.EXE: creating libpled.a
> Fo
I have downloaded the 204 source code and compiled a cross
compiler to Arm to run on a Windows PC
When compiling some code that has worked with the 202 compiler I
get this error:
Assembling led
Assembling with smartlinking led
L:\FPC\ARMBIN\AR.EXE: creating libpled.a
Forkert kommando eller
I have a program like below, and if the control variable (nr) is defined
as a byte/word it fails (the count goes from 1..14) But if I use an
Integer as control variable it works.
Is this an error in the compiler?
If I use the Windows compiler (fpc) it works.
Carsten
When I am try to link a c obj file together with a fpc program I get this errors
("d" is my program)
ld.exe: ERROR: system.o uses hardware FP, whereas d uses software FP
ld.exe: failed to merge target specific data of file system.o
My target (Arm 9) dos not have a FPU
Carsten
_
> Patch cprt0.as for your libc.
The libc that my platform is using is micro libc, and unfortunately the micro
libc is
initialized the same way as libc.
Does anyone have a hint?
Carsten
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
h
>
> On Thu, 20 Jul 2006, Carsten Bager wrote:
>
> > > You need to link to the C library as well.
> >
> > When I use initc I get thise errors
> >
> > Linking nanoxdemo
> > L:\Lib\fpc202\arm-linux\cprt0.o: In function `_start':
> > : undef
1 - 100 of 140 matches
Mail list logo