fpc-pascal
Subscribe to this list Your subscription
Latest threads
- FPC on GSoC1
Could you please tell me more about this issue: It is a good idea. FPC applied twice and was rejected twice. Maybe you can inform with Google Summer of Code, what needs…
- Int64: Cross Compiler 2.1.4 Beta for X64 does not produce faster executables ?0
The project/benchmark below was compiled with Delphi 2007 (produces 32 bit instructions), and Free Pascal Cross Compiler 2.1.4 Beta for X64 (produces 64 bit instructions…
- Functions with out parameters1
I have the following function : procedure Foo(const AText: UTF8String; out AValue: UTF8String); begin ShowMessage(AText); // AValue := 'A custom value'; end; procedure…
- svn_types.inc(432,73) Error: ; expected, but psvn_error_t found2
I have the following code: type psvn_log_message_receiver_t = ^svn_log_message_receiver_t; svn_log_message_receiver_t = function (baton : pointer; changed_paths…
- Empty string11
In any programs, a lot of tests on empty strings are made. The following made the work : if Length(s) 0 then ... or if s '' then ... In a lot of cases, the real length…
- fpc 2.3.1 doesn't allow to pass literal constants as formal const parameter1
Currently fpc 2.3.1 cannot build lazarus anymore. It fails on lines like MyStream.Write(' ',1); The write method is declared as function Write(const Buffer; Count:…
- assitent with Macro translation3
I've started binding libsvn to FPC, and I have encountered the following macro that I do not know how to translate: #define APR_ARRAY_IDX(ary,i,type) (((type…
- Re: fpc 2.3.1 doesn't allow to pass literal constants as formal const parameter2
1. It is passed by value and not by reference. 2. You don't know the size of the value. 3. It is delphi compatible Peter
- GetAppConfigDir(False) on Windows Vista2
Does GetAppConfigDir(False) work under Windows Vista? I'm using it in our applications and we don't have a Vista OS yet to test on. As far as I understand, Vista uses…
- AnsiDequotedStr not return empty for ""9
S := AnsiDequotedStr('""', '"'); Return in S the same source string for empty quoted. That also in Delphi, but it is for me wrong. In fact that make my program working…
- Wince+DebugLn0
Hi, all! When trying to debug LCL DebugLn is rather useful. AFAIU, decision about logging is carried out on initialization of LCLProc unit. Debugging ordinary progs is…
- Empty record inside another record ?20
To me it seems like some kind of trick, to extend a empty record field, functions as a sort of offset/label/pointer if you will to the new fields that will will be…
- make RELEASE=1 ?2
Hi, all! Some time I was building LCL using standart command: make clean all # for current target cpu,os and make clean all OS_TARGET=wince CPU_TARGET=arm PP=ppcarm ...…
- Externalization and inclusion of .PAS files (with GTK+) ?2
I'd like to simplify my programs by creating a short MAIN.PAS file and several additional .PAS files called inside. So I'd like to deport most of my code (procedures,…
- WSAGetLastError returns 0 when it shouldn't but I cannot see why2
Hello, before reporting a bug, I'm asking for support here since I'm not sure I doing something wrong (and if so what am I doing wrong). While using synapse in a thread,…
- arm-linux, no bus error on misaligned data access2
my ARM-Linux board seems to be resistant against bus errors/misaligned data access or the compiler does some magic to prevent these ;-) It would help me, to debug a…
- Question on programming serial communication.13
I decided to port a DOS program (written in BP7) to Linux, because it becomes hard and harder to maintain it since I completely changed to Linux. Because this program…
- > ARM and graphic libraries4
Does anyone here have any experience with using FreePascal using ARM microprocessor and drawing graphics?
- Status on LazReport and FPC 2.3.1 on MacOSX/Win320
I have FPC 2.3.1 installed on both MacOSX and Win32, and trying to see how LazReport is working. On Win32 the debugger crashes, and on MacOSX editing and editing in…
- Vim FileType for pascal files3
hi ! I use includes files and a vim editor. Obviously .inc are not recognized as pascal files. I tried the following : // vim:ts=4:filetype=pascal but it does not work.…
- the libc unit (again)7
I find more and more units and components (for Lazarus) that are using the libc unit. I find it really problematic, because it doesn't exists for all platforms and…
- Local Time7
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…
- GLext in Free Pascal does not work?3
Hello, I've been trying to solve the problem with the unit GLext for some time and I am getting mad. I need to use vertex shaders written in GLSL, but I am a novice in…
- Dependency on other tools ? (Spaces in path issue ?)0
I have come to the point where I want to add files to the search/unit path. I have spaces in my folders and the compiler fails to find the files. This raises some…
- How to Copy files from one dir to another ?3
I´m try use CopyFile (TurboPascal and Delphi function) on FPC 2.2.0 but i can´t. Someone can help-me ? Lucas Vasconcelos
- run time error 2088
what makes a calculation like this: result := 4*Q / (pi*ny*d); throw an error: An unhandled exception occurred at $080897AB : Exception : Unknown Run-Time error : 208…
- fpGUI (a Free Pascal GUI Toolkit) v0.6 has been released2
fpGUI version 0.6 has been released. Five months after the previous release, v0.6 is finally here. As always, lot has been improved and added. For example: a newly…
- cthreads unit2
I'm trying to use the pthread_self function that supposed to be existed at cthreads unit. However the compiler tell me that it does not know "pthread_self". I'm using…
- compiler asks for variants support2
why does this program: program novariant; uses sysutils; var a, b: double; begin b := 0.4237; a := b**5; writeln(floattostr(a)); end. when running give that error…
- Pascal Translator for Virtual Machines1
I finally setup a SourceForge project for the PTVM: https://sourceforge.net/projects/ptvm/ Right now it's at beta 0.3, and can translate and compile (with MTASC) a…
