Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2013-05

  1. Synchronize(dummyproc) with Linux.

    This about audio and fpc and fpGUI and LCL and Linux. (working good with Windows) Have some trouble with threads synchronize() procedure. The main thread.execute is a…

    Fred van Stappen, fredvs, Graeme Geldenhuys
    50
  2. http://www.freepascal.org/future.var

    On this page: http://www.freepascal.org/future.var this is mentioned: Planned for later versions ... LLVM backend support Going by the discussions on this mailing list…

    Reinier Olislagers, Felipe Monteiro de Carvalho, Florian Klaempfl
    20
  3. How to handle External:SIGPIPE on linux

    I am using LNet 's SSL sockets on ubuntu. When I use a self signed certificate and the browser gets a warning, it seems the browser immediately send a close-notify or…

    Dennis, Dennis Poon, Ewald
    4
  4. Program not running

    Does anyone have an idea why a program made with fpc will not run ? I have an odroid X2 module, with xubuntu armhf. I "installed" the fpc/fpgui-package from Paul…

    Koenraad Lelong, Mark Morgan Lloyd, Thomas Schatzl
    5
  5. Trunk seems to break again!?!?

    On Linux x64 with a clean fpc directory, using fpcup: svn info: ... Last Changed Author: joost Last Changed Rev: 24622 Last Changed Date: 2013-05-26 22:51:41 +0200 (Sun,…

    Reinier Olislagers, Jonas Maebe, Joost van der Sluis
    17
  6. fcl-res: using resource embedded in exe

    I've noticed some code of mine using resources needed the windows unit (to get RT_RCDATA), Iand therefore wasn't cross-platform. Tried rewriting using fcl-res, which…

    Reinier Olislagers, Jonas Maebe, Marco van de Voort
    5
  7. FPC 2.7.1 | ARMHF/ARMV6 | Optimization breaks my code at -O2

    What are the optimizations made between -O1 and -O2 on this target? Are optimizations at this level materially different when comparing ARM to x86 output targets? I ask…

    Bruce Tulloch, Nico Erfurth
    2
  8. Moving packages\fcl-res docs to main fpcdocs?

    Noticed that fcl-res has documentation in an XML subfolder of $(fpcdir)\packages\fcl-res Shouldn't these be moved into the general fpcdocs repository (and generated as…

    Reinier Olislagers, Michael Van Canneyt
    5
  9. Undefined symbols. Help!

    Can someone point me in the right direction towards solving this problem? I built a static libraries on Linux based on some open source c and h files. I can compile…

    Anthony Walter, leledumbo
    3
  10. Not working download-link

    I just tried to download fpc for arm-linux. The links on the website are broken. Now it is :…

    Koenraad Lelong, Marco van de Voort
    1
  11. Win64 release of FPC 2.6.2 missing

    I just tried to update one of my Windows VM with the latest released FPC. To my surprise there is no Win64 release for FPC 2.6.2 on SourceForge? I only found a 32-bit…

    Graeme Geldenhuys, Andrew Brunner, Bruce Tulloch
    31
  12. Re: CThreads problem when cross-compiling to ARM/RPi [SOLVED]

    For those that are interested, converting all symlinks to be relative (in /usr/lib in the crossroot) fixes cross linking problems (i.e. when using --sysroot with ld)…

    Bruce Tulloch
    0
  13. CThreads problem when cross-compiling to ARM/RPi.

    Starting with a simple test program arm-test.pas: program test; begin writeln('DATE ',{$i %DATE%}); writeln('FPCTARGET ',{$i %FPCTARGET%}); writeln('FPCTARGETCPU ',{$i…

    Bruce Tulloch, Jonas Maebe
    17
  14. Android JNI failing in Galaxy S4

    I know that some other people here are developing Android JNI apps. For me it has worked perfectly so far, but as we just got a Galaxy S4 in the office I thought of…

    Felipe Monteiro de Carvalho, Bart, Mark Morgan Lloyd
    19
  15. FPC cross compilation error: cannot find -lgcc

    I am puzzled by the failure to cross compile with recent FPC versions. Cross compilation from Ubuntu 32 bit to Win32, WIn64, and Linux 64 works well with FPC 2.6.0. With…

    patspiper, Bruce Tulloch, Marco van de Voort
    5
  16. PostgreSQL and error codes

    How to get the error code of a data base error? I'm using the PostgreSQL. The full list of all erros is: http://www.postgresql.org/docs/9.2/static/errcodes-appendix.html…

    silvioprog, Reinier Olislagers
    2
  17. How does FPC calculate linker search paths upon -XP?

    Using FPC 2.7.1 I'm cross-compiling from x86_64 to ARM/RPi and have specified: -XR/usr/local/opt/chroot/raspbian/rootfs This produces a link.res file that includes the…

    Bruce Tulloch, Jonas Maebe
    3
  18. FPC trunk r224549 needs more incantations?

    r24549 | joost | 2013-05-21 21:58:14 +0200 (di, 21 mei 2013) | 1 line * Removed unused unit jarparamparser.pas Perhaps some (fp(c))make regeneration or something?…

    Reinier Olislagers, Sven Barth, Vincent Snijders
    4
  19. Stupid ExcludeTrailingPathdelimiter question

    I did not expect this: ExcludeTrailingPathDelimiter(/) = {Linux} ExcludeTrailingPathDelimiter(\) = {Windows/WinCE} ExcludeTrailingPathDelimiter(c:\) = c: Reasom I'm…

    Bart, leledumbo, Mattias Gaertner
    6
  20. Error: Duplicate identifier "FarPointer"

    Today I updated my GIT copy of FPC, and after I try to make it and install, I got this error: http://pastebin.com/90fhy34Y Until last week everything was normal. Thank…

    silvioprog, Ewald, Jonas Maebe
    13
  21. Compiler bug with managed type not being initialized correctly

    I just filed a bug having to do with a managed type (I am using an interface in my code) not being properly initialized when stored in a record's private section:…

    Anthony Walter, Paul Ishenin
    1
  22. -v to show function call frequency

    Is there any -v (or any other option) to show summary of function call frequency (in term of appearance in source code, not actual function call)? i.e. something like:…

    leledumbo
    0
  23. Examples of tiOPF logging in the wild

    Are there some examples of using tiOPF logging besides those in the demos? I want to use tiLogToGUI, but I am not happy with the amount of screen space it takes. Is…

    vfclists ., Graeme Geldenhuys, Michael Van Canneyt
    3
  24. TProcess, Batch script and Windows

    I want to execute a batch file on Windows (FPC 2.6.2 and Laz trunk) using TProcess class. It ONLY works if I use the [poWaitOnExit] and DO NOT USE [poNoConsole] options.…

    Marcos Douglas, leledumbo, Mark Morgan Lloyd
    5
  25. Re: : can not build RTL with 2.7.1 compiler

    ---------------------------------------------------------------------- Compiling the RTL of revision 24514 with a compiler of revision 24514 is supported, isn't it?…

    Vincent Snijders, Jonas Maebe
    1
  26. Documentation site: incorrect manual name

    On http://www.freepascal.org/docs-html/ I find FCL (Free Class Library) reference manual. however the doc itself (and the 2.6 PDF) specifies Free Component Library Could…

    Reinier Olislagers, leledumbo
    1
  27. Overloading doubt: bug or feature

    Is the following a bug or undocumented "feature"? function f(s: string): string; begin f := '''' + s + ''''; end; function f(s: string): integer; begin Val(s,f); end; var

    leledumbo, Jonas Maebe
    2
  28. fpSock?

    Is fpSock deprecated? I noticed that it is implemented only for unix system. Someone still maintains this unit, if yes, you would have no interest in making it…

    silvioprog, Marco van de Voort, Michael Van Canneyt
    3
  29. Redirecting heap trace output to stdout

    The only available function for dumping heap trace output is DumpHeap, which outputs to stderr. However, it's problematic to use it in a web environment, because web…

    leledumbo, Bart, Graeme Geldenhuys
    9
  30. FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

    After a random but very long period of time (i.e. very many successful calls) I get a SEGV in the built-in function fpc_AnsiStr_Decr_Ref. GDB reports the argument to…

    Bruce Tulloch, Jonas Maebe, José Mejuto
    15
  31. systemh.inc(117, 16) Error: Duplicate identifier "FarPointer"

    Compile failed. Please see below the error/bug. svn up make clean make OVERRIDEVERSIONCHECK=1 NOGDB=1 OPT='-O- -gl -Xs-' all .................... ....................…

    Eric Kom, Dennis Poon, Jonas Maebe
    18
  32. How to use string defines ?

    I'm trying to make an application that need to be FHS compliant. For that I want be abble to pass some strings as compile time parameters (eg. the famous $PREFIX). I…

    Geoffray Levasseur-Brandin, patspiper
    2
  33. ID3v2 - Reading and writing MP3 metadata

    I friend has sent me a component to read and write mp3 tags. In particular, I am interested in the ID3v2 pattern. In theory, the attatched component could do what I…

    luciano de souza, Fred van Stappen, leledumbo
    6
  34. ImageMagick and Static Linking

    Image Magick comes with static libraries and dynamic libraries. Is there any way to make ImageMagick unit support the *.lib files? I'm trying to avoid having to…

    Andrew Brunner
    0
  35. Cross-building on from Linux/i386 to Linux/x86-64

    <Continuation of discussion from "Cross-building on from Linux/x86-64 to Linux/i386 (was: Win64 release of FPC 2.6.2 missing)"> It is the other way round. My OS is 32…

    patspiper, Jonas Maebe, Marco van de Voort
    10
  36. Is THostResolver creating a thread?

    A friend from Brazil found a small problem in "resolve" unit. Before execute the test: http://imagebin.org/256886 After execute the test: http://imagebin.org/256887 And…

    silvioprog, Michael Van Canneyt, Zaher Dirkey
    5
  37. Strange error message

    I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line:…

    Darius Blaszyk, Sven Barth
    5
  38. How to close TInetServer without except?

    I'm trying to close a socket (full code here: https://bitbucket.org/silvioprog/tcpipcomp/src/6b43739d5416424e82112b858a9b71d26c8c6165/src/tcpipserver.pas?at=master ):…

    silvioprog, Ewald, Ludo Brands
    46
  39. $LINKLIB or $LINK in Lazarus/FPC on Mac OSX

    Hello: I am new to the list, I have posted on the forum, but I don't really know where the center of gravity is for this FPC/Lazarus Community, so I will post on the…

    Unknown author, Jonas Maebe, Martin
    7
  40. Compileability of target WinCE restored

    Hello together! I've now restored the possiblity to compile arm-wince and i386-wince in revision 24420. Sorry for the long time of broken compilation and the resulting…

    Sven Barth, Zaher Dirkey
    2
  41. Porting C variable declaration

    I came across a pointer variable in C which also get's assigned integer values. Anyone has an idea how to port this in FPC? The variable is declared as: static void *x=0;

    Darius Blaszyk, Jonas Maebe
    2
  42. How to detect if a project is a simple program or a application?

    I'm trying to detect if a project is a simple program or a application. Please download a small test here: https://www.dropbox.com/s/w6a9gb4b9hnjit5/prova.zip On Windows…

    silvioprog, João Marcelo Vaz
    2
  43. fpc does not invoke correct compiler

    Hi all I experience inconsistency using fpc wrapper. See below. When I invoke fpc using command line "fpc -Px86_64 ..." it correctly executes cross-compiler (ppcrossx64)…

    denisgolovan, Marco van de Voort
    2
  44. fpGUI Toolkit v1.0 release for FPC 2.6.2

    fpGUI v1.0 is available ======================== I'm glad to announce the 1.0 release of fpGUI. This has been over a years worth of development, so a complete list of…

    Graeme Geldenhuys, Mark Morgan Lloyd, Paul Breneman
    4
  45. Problems with ImageMagick Win64

    Current FPC/Trunk running on Win64 XP I can't get ImageMagick unit to work under Windows XP 64. I changed Win32 to Windows {$ifdef Windows} MagickExport =…

    Andrew Brunner
    2
  46. Generic Observables

    I was experimenting with using some of FPC's features together and came up with this: https://github.com/tangentstorm/lazmvc/blob/master/umodel.pas Basically, it's just…

    Michal Wallace, Graeme Geldenhuys, Michael Van Canneyt
    3
  47. What library would be recommended for creating pdf file (print invoices)

    I'm wondering which is the best library available for freepascal that i could use to generate printable invoices? Most likely a lot of people need this kind of…

    Adrian Maier, Graeme Geldenhuys, Michael Van Canneyt
    3