fpc-pascal
Subscribe to this list Your subscription
Latest threads
- FPC 2.3.1: undefined reference to `fpc_geteipasebx'2
Hello! I use FPC 2.3.1 to let FPC compile shared libraries with PIC code. (PIC support is broken in FPC 2.2.4) My shared lib compiles successful, but if I compile a…
- Why has StrToDate() failing under FPC 2.3.1 (64bit)16
Compiling the project works fine under FPC 2.3.1 (linux 64bit), but running it, i get a EConvertError and I don't know why. I am telling sysutils what LongDateFormat is…
- Division by Zero: EDivByZero and EZeroDivide19
Is there a reason why in fpc both floating point and integer division by zero raise an EDivByZero exception? See:…
- What about the Foreach statement?1
Have you considered implementing the foreach construct similar to that found in many modern languages? Nino
- Thread Priorities - Linux2
The Linux tthread.inc file in FPC 2.2.4 refers: There is a constant array defined at line 55 that lists 'priority' values which I think are inverted. i.e. Currently, the…
- Who said Pascal isn't popular40
I came across this link by chance. Wow, I never knew there was that many Pascal Compiler implementations. A lot! http://pascaland.org/pascall.htm - Graeme -…
- BNF grammar for fpc20
is a complete grammar for fpc written in some variant of BNF available somewhere? I searched the website and the wiki, to no avail. Marc Marc Santhoff
- (no subject)1
i want to don't send mail to me from you but idn't know how do it. please guide me
- New/Dispose vs GetMem/FreeMem3
Which of these should I use in new projects? I read somewhere that GetMem/FreeMem is actually compatibility methods from Turbo Pascal days, yet I have seen lots of new…
- MySQL12
FPC 2.2.4 OS X 10.6.1 Xcode 3.2 All references to MySQL function are unresolved by linker. libMySQLclient.a is copied to .pas directory. Using FPC test code for MySQL…
- open arrays as parameters (why packed not allowed)?6
I am translating some Pascal code from MetaWare Professional Pascal to Free Pascal. The MetaWare code uses conformant arrays, which are not supported within Free Pascal.…
- pointer arithmetic help required6
Sorry, I suck at this pointers think. Currently I am reading one record in correctly and from there is all corrupted data. :-( Seeing that the first block of data…
- What does TFileStream.Seek() return?4
Based on the documentation shown here, it doesn't mention what the return value is. Anybody have a clue?…
- two small ?s - high(real) and nearest 2^x16
1. Is there a way to get the highest and lowest real values? I can do high(longint) but high(real) gives me an error. Also of interest is a low(real) value (-m * 10^n)…
- Linux IPC (SHM) : Getting Strange Value for shm_nattch (# of attachements)3
I try to get number of processes attached to a specific shared memory segment. So I read the shmctl record to retrieve this into shared memory : type TShmid_ds = record…
- Code conversion question - alloc and dealloc memory4
I'm am having problems allocating memory and then populating that memory with a TFileStream.Read() call. So I thought, maybe my GetMem() call is incorrect. I then looked…
- More OS X problems2
OS X 10.6.1 FPC 2.2.4 Xcode 3.2 (64 bit) Using code base that has complied correctly since 2004 Fixed $MODE OBJFPC Current problems 1) A unit with identical first few…
- Video4Linux access1
I need video4linux support for my new project. I tried vfp unit I found in the contribute units website. But it seems very outdated. Itried all things menitioned in the…
- How to Copy a Record data to a buffer?79
TCommsBuffer = packed record UnitID: Byte; FunctionCode: TModBusFunction; MBPData: TModBusDataBuffer; Spare: Byte; end; { TCommsBuffer } SendBuffer: TCommsBuffer;…
- Lazarus 0.9.28 released1
The Lazarus team is glad to announce the 0.9.28 release. This release is based on fpc 2.2.4. This release can be downloaded from the SourceForge download page:…
- Why use pointers to arrays?10
The other "arrays" discussion got me thinking, and after working so long with only desktop type applications that talk to database API's, I long some knowledge of the…
- Mac OS X 10.6.1 problem2
Using OS X 10.6.1, FPC 2.2.4, Xcode 3.2 on intel iMac. The program and units all have {$I Directives.inc} at top of each file. Compile lists many errors like: 6: Mode…
- Exporting user-defined conditionals1
According to the note in chapter 2, section 2.2.1 of the FPC Programmer's Guide, it is not possible for conditionals to be exported to other units. Is there a way around…
- QueueUserAPC Similar Cross platform Functionality3
I've got a unit I'm porting from Windows to Linux and I came across a QueueUserAPC (Kernel32 Windows) I make to add a callback method that gets executed by the thread I…
- FIONREAD FPC FpIOCtl for Cross platform Sockets2
Sockets programming often requires a poll for how much data is available on a particular socket descriptor. I'm porting an inhouse library for a sockets implementation…
- Looking for remote working freelancer for a C++ to FPC porting project0
We are a small company dedicated to data recovery software and are going to port over a mix of 18K C++ and some Delphi code to a cross platform (Mac+Win) data recovery…
- Is svn2.freepascal.org down?1
I cant get in contact with the repository on svn2.freepascal.org (no ping reply either). Can someone give it a kick again... Torsten Bonde Christiansen.
- Case in Record25
In the document (http://www.freepascal.org/docs-html/ref/refsu15.html#x38-450003.3.2) I read the code below: Type MyRec = Record X : Longint; Case byte of 2 : (Y :…
- linker apache linux8
Hello all if i try compile free pascal http22 examples in ubuntu - i get this error. sudo make /bin/mkdir -p units/i386-linux /usr/bin/ppc386 -Fu../../../rtl…
- Support for C++ library format?8
Hi! Is there a plan to allow the use of C++ libraries with FPC? Now C libraries can be used and many of them have Pascal mappings. It seems C++ libraries can be used…
