Questions tagged [fpc]

FPC (Free Pascal Compiler) is a 32/64-bit multi-architecture Object Pascal compiler with both Turbo Pascal, Apple Pascal and Delphi dialects.

FPC (Free Pascal Compiler) is a 16/32/64-bit multi-architecture Object Pascal compiler with both Turbo Pascal, Apple Pascal and Delphi dialects.

Free Pascal is the compiler core under the Lazarus RAD project, which provides a portable Delphi-like IDE and RAD. Lazarus has its own tag on Stackoverflow.

However Free Pascal is used directly for server/web/control apps too.

Free Pascal currently supports x86/x86_64, powerpc/powerpc64, sparc and assorted ARMs, and most popular OSes.

8086 (16-bit x86), m68k and Mips are in advanced stages of preparation in the development branch.

164 questions
3
votes
1 answer

Is there a command line interpreter for Free Pascal?

E.g., one I could use by adding a shebang to my Pascal files: #!/usr/bin/env fpi
mcandre
  • 22,868
  • 20
  • 88
  • 147
3
votes
3 answers

How can I get the Free Pascal Compiler xcode template to work with xcode 4

I'd love to start using Pascal again on the mac and fpc 2.4.2 comes with a template for xcode. However, that template was designed for an earlier version of xcode and and after I install it, I still don't see any option to use fpc in a new xcode…
David
  • 5,991
  • 5
  • 33
  • 39
3
votes
2 answers

Active blogs about Lazarus and/or FPC

I'm getting really upset with the whole direction that "Emborcadero" is taking and I'm really going to invest in FPC/Lazarus. Went to the Lazarus Documentation page and found the following blogs: Lazarus Development - Up to date Adventures of a…
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
3
votes
2 answers

What is the implementation of sets used in pascal?

I want to know the actual implementation of the set type in pascal, provided by the language. Specially, I would like to know the one used in the freepascal runtime library, but I'm interested in any pascal implementation. I care about the run-time…
Akronix
  • 1,858
  • 2
  • 19
  • 32
3
votes
2 answers

Why this LEA instruction does not compile?

I am porting 32-bit Delphi BASM code to 64-bit FPC (Win64 target OS) and wonder why the next instruction does not compile in 64-bit FPC: {$IFDEF FPC} {$ASMMODE INTEL} {$ENDIF} procedure DoesNotCompile; asm LEA ECX,[ECX + ESI +…
kludg
  • 27,213
  • 5
  • 67
  • 118
3
votes
2 answers

How to create makefile for Lazarus projects?

After doing a light search on the Lazarus site I've come to the conclusion that this question has been asked some times but I haven't found an answer, so I'll ask my SO peers. Is there a a way to create a Makefile to replicate the action of the…
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
3
votes
2 answers

Problem with Splash Screen in Lazarus app

I am porting a Delphi application to FPC/Lazarus and this application shows info in splash screen. When unit has initialization section then this initialization section calls something like: Splash.Info(unit_name) This works in Delphi, but when I…
Michał Niklas
  • 53,067
  • 18
  • 70
  • 114
3
votes
1 answer

How do I get Magento to serve up the cached version of the page when I have unique URL parameters?

It's a simple question with no answer in search(google/bing/stackoverflow). The answer of course could be complicated. I've read a couple articles on FPC within Magento, and have yet to really nail down where I need to add or create code so that…
Joshua Pack
  • 910
  • 1
  • 9
  • 21
3
votes
1 answer

How accurate is SQRT function in Delphi and Free Pascal?

SQRT is implemented as a FPU function on 80-bit float value in Delphi XE; not sure how it is implemented in 64-bit compilers. Floating point functions are known to be approximate. Can I assume that the next assertions will never fail? procedure…
kludg
  • 27,213
  • 5
  • 67
  • 118
3
votes
2 answers

Scoped unit names in FPC

Is it possible to port Delphi unit with a scoped name like MyLib.Classes.pas to FPC (ver 2.6.0) without renaming it to remove the scope prefix MyLib.?
kludg
  • 27,213
  • 5
  • 67
  • 118
2
votes
0 answers

Locate Lips on a Face in Android

I have a need to detect face in a photo. Generally the face will be covering 60% of the photo. Once face is detected I have to highlight the lips of the photo with a per-defined color which is Black. I tried to get the Face Detection feature of…
Yogi Yang 007
  • 5,147
  • 10
  • 56
  • 77
2
votes
1 answer

What would be a way to distribute a self installing package on Lazarus

I've seen the self installing executable for the Virtual String Tree for Delphi. I'm thinking of doing a similar thing for Lazarus/FreePascal, so my question is more like a call for a map or a list of instructions: How can I determine where the…
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
2
votes
1 answer

GlScene Mouse to point on TGLHeightField

I have a GLScene with a TGLHeightField with it points loaded from its OnGetHeight. What i'm trying to work out is what 3d point on the HeightField the mouse is currently over in the mousemove event. The hight(y) on the HeightField isn't really…
Christopher Chase
  • 2,840
  • 6
  • 36
  • 57
2
votes
2 answers

Can we use > (greater than) or < (lesser than) on compile conditionals with the version number on Free Pascal

I've seen conditional compile directives with expressions related to the version of the compile, but I'm unable to locate them again. How would I correctly write this in Free Pascal? program do_stuff; begin {$IF VER > 2.4} // Some code…
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
2
votes
1 answer

Is there a way to compile Free Pascal code to a Symbian OS .sis

We all know that Free Pascal can compile for the platforms that support Symbian OS, so is it possible to, painfully I must say, get a method to compile to the .sis format? Many thanks!!
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
1 2
3
10 11