AW: [fpc-pascal] is planned next 2.0.x release?

2006-05-18 Thread fpc
Hi, I would like to express my wish for a new 2.0.x release too. :-) We have also (minor) Problems (Dataset / Timestamp problems) with 2.0.2 and we would need a new "stable" release for a new stable ZEOS Database Tools Release for Lazarus FPC. (ZEOS works currently rather stabl

[fpc-pascal] Problem with DateTimeToStr at midnight?

2007-04-20 Thread fpc
fset:=1-frac(now)-5/86400; while not(keypressed) do begin writeln(DateTimeToStr(now+timeroffset)); (* Write the time by adding some offset-seconds*) end; end. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

[fpc-pascal] put data to stdout (fpc vs. gcc)

2007-06-13 Thread fpc
Hi I wrote two programs one in C and one in Freepascal. The program read a variable of a library and write it to stdout. I will put it into a file: ("#: ./dataprog > file.dat"). I use "printf" in the C and "writeln" in Freepascal. The problem: The fpc-base

[fpc-pascal] Re: put data to stdout (fpc vs. gcc)

2007-06-14 Thread fpc
) I think, FreePascal produce fast programs. I look in fpc options an found: -O optimizations: -OGgenerate faster code (default) I use this default option. I use on gcc no specific optimizations. 3.)The version is "Free Pascal Compiler versi

[fpc-pascal] Re: put data to stdout (fpc vs. gcc)

2007-06-15 Thread fpc
Hi Jonas, >> I know, programs with a writeln() have lower performance, but I think, >> printf() and writeln() must do the same. This need time to calculate. >> But the difference between printf() and writeln() are so, that the fpc >> program breaks with errors

[fpc-pascal] Re: put data to stdout (fpc vs. gcc)

2007-06-21 Thread fpc
C source: for (i=0;ihttp://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] unit system;  procedure move();

2008-03-17 Thread fpc
Mailing List: fpc-pascal@lists.freepascal.org ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re[2]: [fpc-pascal]Synapse for FPC

2003-07-23 Thread vtech-fpc
LG> yes, but... with other large TCP/IP libraries you MUST use threads... LG> with synapse you CAN use threads. This is mojor difference! One day LG> will be finished thread support in FPC and all will be happy. ;-) Why must I use threads? Following works perfectly for me for many year

Re[4]: [fpc-pascal]Synapse for FPC

2003-07-23 Thread vtech-fpc
; sockets with blocking code using threads. This gives you a clear seperation ME> between your tcp/ip mechanism and your application code. This is the route ME> we usually take here. ME> Swings and roundabouts, I know ;-) ME> Matt ME> ___

hello

2004-01-27 Thread fpc-pascal
The message contains Unicode characters and has been sent as a binary attachment. <>

Re: [fpc-pascal] FPC & Lazarus moving to gitlab

2021-06-22 Thread fpc-devel via fpc-pascal
On 6/22/21 9:05 AM, Michael Van Canneyt via fpc-pascal wrote: Hello All, The Free Pascal and Lazarus teams are in the process of switching to Gitlab to manage their source code and issue reports. In order to lower maintenance of their own infrastructure, a hosted solution has been chosen

[fpc-pascal] Changes in 2.4.0

2010-03-30 Thread lists . fpc-pascal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, After quite a long time of absence from FPC, I decided to pick it up again. One of the first things I stumbled upon was the absence of ResourceStringTableCount, GetResourceStringHash and related functions. Is there somewhere a list that tells

Re: [fpc-pascal] Changes in 2.4.0

2010-03-30 Thread lists . fpc-pascal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Jonas, Today, Mar 30, Jonas Maebe wrote to FPC-Pascal users discussions about Re:...: Thanks to you and Michael for the speedy reply. JM > > One of the first things I stumbled upon was the absence of JM > > ResourceStri

Re: [fpc-pascal] Changes in 2.4.0

2010-04-23 Thread lists . fpc-pascal
beginning: { Compiler options } {$mode ObjFPC} {$M 8192,0,655360} {$I-,H+} {$IFDEF Testing} {$D+,L+,R+} {$ELSE} {$D-,L-,R-} {$ENDIF} And in my compile batch I have: fpc -vw -Fi~/amc/src -FE../bin -Fu~/pascal/units -FU./ amc When I try to copileis tells me: Copyright (c) 199

Re: [fpc-pascal] Changes in 2.4.0

2010-04-26 Thread lists . fpc-pascal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Jonas, Friday, Apr 23, Jonas Maebe wrote to FPC-Pascal users discussions about Re:...: JM > > I'm still stuck. Who can tell me what's wrong? JM > Without a self-contained compilable example that demonstrates the problem: J

[fpc-pascal] Linker switch

2020-02-18 Thread - via fpc-pascal
, Koenraad. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] parameter list declaration

2017-04-01 Thread leledumbo via fpc-pascal
fficial document from Delphi here: > http://docwiki.embarcadero.com/RADStudio/Berlin/en/Parameters_(Delphi) > which I think a bit more clear. Their wiki content is actually user contributed, no better than Lazarus/FPC wiki. It sometimes feels easier to read because it's written from user P

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-16 Thread leledumbo via fpc-pascal
ontext: http://free-pascal-general.1045716.n5.nabble.com/Partial-text-search-in-a-dictionary-tp5728562p5728601.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______ fpc-pascal maillist - fpc-pascal@lists.freepa

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread leledumbo via fpc-pascal
iew this message in context: http://free-pascal-general.1045716.n5.nabble.com/Browser-and-exe-tp5728798p5728804.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

Re: [fpc-pascal] GLM library alternative?

2017-05-27 Thread leledumbo via fpc-pascal
bble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Error building FPC 3.0.2 from svn sources on RPi3

2017-05-29 Thread leledumbo via fpc-pascal
> I do not understand what -iVSPTPSOTO is... That's what happened when the compiler cannot be called by make. Watch: > make: -iVSPTPSOTO: Command not found it's a parameter list for fpc to get (from fpc -h): -i Information ... -iSO Return compiler OS -

[fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
For debugging reasons I have installed fpc 2.6.4 on Debian so I can compile some old SVN revisions, number 32959 for example. I want to use the fp editor to run the test, but it seems as the "systemic" 2.6.4 is being used for compiling instead of the SVN version. The bug doesn&#x

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
I meant to say that system fpc is put AFTER the SVN fpc in the path. On 08/16/2017 09:09 PM, kapibara wrote: PATH=home/roger/fpc/fpc_svn/bin:/home/roger/fpc/fpc_svn/compiler:/usr/local/bin:/usr/bin:/bin export PATH=home/roger/fpc/fpc_svn/bin:/home/roger/fpc/fpc_svn/compiler:/usr/local/bin

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
Ah, so FP has no versions other than the official releases then? (2.6.0, 2.6.2, 2.6.4 and so on) Why doesn't FP use the same compiler revision as the SVN sources it comes with? Because the fp executable is compiled at the same time as fpc? Alright then, I'll try instead: fpc test

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
You're right, now I fixed that and "which fpc" reports the SVN version! On 08/16/2017 10:15 PM, Tomas Hajny wrote: On Wed, August 16, 2017 21:15, kapibara via fpc-pascal wrote: I meant to say that system fpc is put AFTER the SVN fpc in the path. Due to the missing slash at t

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
The old SVN version is now in play, so far so good! But then "Can't find unit system" happened: roger@bikupan:~/fpc/fptest_working$ fpc fptest.pas Free Pascal Compiler version 3.1.1 [2017/08/16] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: L

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
To be sure fpc.cfg is found I started the compilation from fpc's bin directory where the fpc.cfg is located. roger@bikupan:~/fpc/fpc_svn/ bin$ ./fpc /home/roger/fpc/fptest_working/fptest.pas Free Pascal Compiler version 3.1.1 [2017/08/16] for x86_64 Copyright (c) 1993-2015 by Florian Kla

Re: [fpc-pascal] Using other fpc installation

2017-08-16 Thread kapibara via fpc-pascal
Alright, its compiling! It was wrong path in fpc.cfg. The DEB installation creates a directory structure under the fpc directory that matches this: /lib/fpc/3.1.1/units/$fpctarget Thanks again! On 08/16/2017 11:22 PM, Tomas Hajny wrote: On Wed, August 16, 2017 23:08, kapibara via fpc

Re: [fpc-pascal] Pascal support in the Kattis educational site

2017-08-17 Thread kapibara via fpc-pascal
has some interest here: "Kattis" (open.kattis.com) is a site where students can make programming exercises. This is quite important IMHO; companies look at Kattis results when recruiting. _______ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] fpReport released

2017-08-21 Thread leledumbo via fpc-pascal
> fpreport has been committed to FPC SVN: packages/fcl-report. > It should compile on windows, linux, freebsd and darwin. From the wiki: "An important use-case was a Linux server running in a container without X libraries installed" Yep, yep, yep. Finally I can replace m

Re: [fpc-pascal] Container class for key-value pairs

2017-09-11 Thread leledumbo via fpc-pascal
the implementation is? -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread leledumbo via fpc-pascal
late/generic C++ class that implements a dynamic array functionality, but it can't be used outside C++. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fre

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread leledumbo via fpc-pascal
> Would it be possible to do this via a Lua shim? How is it even related with that? -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread leledumbo via fpc-pascal
> I thought FPC had the ability to execute a fragment of Lua, and Lua I believe can call C++ directly. No, Lua can only call C, just like FPC. You do know the problem of C++ interfacing, don't you? -- Sent from: http://free-pascal-general.1045716.n5.na

Re: [fpc-pascal] compiler option for $J directive

2017-10-08 Thread leledumbo via fpc-pascal
er directory (please checkout r37430 at least), I only svn diff there, not in the top level directory (I have modifications to certain packages). -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.fr

Re: [fpc-pascal] Google Drive API

2017-10-13 Thread leledumbo via fpc-pascal
.1045716.n5.nabble.com/ERESTAPI-TBuckets-unsupported-array-element-type-lt-looks-like-empty-string-gt-td5726387.html -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.

Re: [fpc-pascal] JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

2017-10-15 Thread leledumbo via fpc-pascal
com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-10-28 Thread leledumbo via fpc-pascal
> or even neural network libraries written in Pascal? Try contacting schuler in Lazarus forum. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.

Re: [fpc-pascal] Compiler directive to compile to 64 bits

2017-11-02 Thread leledumbo via fpc-pascal
> Hi, a newbie question but the docs aren't clear on how to say that I want to use the 64-bit compiler, not the i386 fpc -Px86_64 -Twin64 -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fp

Re: [fpc-pascal] Object-oriented file (path) handling library

2017-11-09 Thread leledumbo via fpc-pascal
> is there something simliar to Java's java.io.File or java.nio.Path for FPC? Google makes me think there isn't... No, there isn't. Welcome to hybrid paradigm programming language. It's not difficult to make an OO wrapper for File* SysUtils functions or even the clas

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-09 Thread leledumbo via fpc-pascal
> When I'm in doubt about the conditional defines, I either google or take advantage of Lazarus: in project->options I select the target CPU family and the target processor, and then I use "show all options" to see which defines are set. fpc -vc is your friend here.

[fpc-pascal] Is there a way to execute code after 'initialization' and before 'main', i. e. AddExitProc complement?

2017-11-28 Thread Роман via fpc-pascal
AndInitialize before 'main' without additional user actions? ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Use OpenDocument (.odt) files as templates

2017-12-02 Thread leledumbo via fpc-pascal
com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why win64 program are considerably bigger in exe size than win 32?

2017-12-22 Thread leledumbo via fpc-pascal
> Why? At least pointer size takes double space, multiply it with every instances 1.5x bigger is not impossible. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org h

Re: [fpc-pascal] Modern Compiler Construction using Pascal

2018-01-04 Thread leledumbo via fpc-pascal
27;t break anything lately): https://code.google.com/archive/p/lysee/ -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-04 Thread leledumbo via fpc-pascal
> Is there a complete list of packages available somewhere? $ svn co https://svn.freepascal.org/svn/fpc/trunk fpc $ cd fpc/packages $ ls tadaaa... -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist -

Re: [fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread leledumbo via fpc-pascal
ssing or your server dies (500). -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] PAS2JS: operations with array of record

2018-01-10 Thread warleyalex via fpc-pascal
mapping elements of the array according to a map function. The map function takes a single parameter of the type of the array items and returns the mapped value.   · Peek() : returns the last item.   · Pop() : returns the last item and removes it from the array.   · Remove([startI

Re: [fpc-pascal] PAS2JS: operations with array of record

2018-01-11 Thread warleyalex via fpc-pascal
e this high level functionality as well. Using the Pas2JS approach with external classes interfaces it looks so powerful :) <http://free-pascal-general.1045716.n5.nabble.com/file/t339674/codeinsight.png> -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/______

[fpc-pascal] PAS2JS: JSON suggestion

2018-01-11 Thread warleyalex via fpc-pascal
rnal name 'JSON';implementationend. and use like this: JSON.stringify( JsonObject ); -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/_______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Trying to compile ZeosDBO cli program

2018-02-15 Thread leledumbo via fpc-pascal
> Never mind I have it figured out. You have to add the path to > the /etc/fpc.cfg file, such as: You can do it from command line, too. In fact, if you already have it working from Lazarus, simply open Project Options->Show Options->Command Line Parameters tab, copy the content

Re: [fpc-pascal] Python interaction... how?

2018-02-16 Thread leledumbo via fpc-pascal
l.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] [FCL-WEB] Multiple Modules - On Session

2018-03-21 Thread leledumbo via fpc-pascal
bble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Inline scoped enums

2018-04-06 Thread Роман via fpc-pascal
How can this code {$scopedenums on} type Bar = set of (A, B, C); refer to A, B, C? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Inline scoped enums

2018-04-07 Thread Роман via fpc-pascal
der could they make such code to not compile at all... _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread leledumbo via fpc-pascal
> Create a call that calls Application.Terminate. I just call DumpHeap(false); instead -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-

Re: [fpc-pascal] detecting recursive loops

2018-05-06 Thread leledumbo via fpc-pascal
ust make it global) and on start of each procedure, you check whether the current procedure is in the map already or not. If yes, then the current call stack has formed a recursion. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___

Re: [fpc-pascal] FPC on Android tablets: ARM, x86_64

2018-05-11 Thread leledumbo via fpc-pascal
: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] השב: Re: Free e-book: Free Pascal from Square One

2018-05-28 Thread ezrashumla via fpc-pascal
נשלח מסמארטפון ה-Samsung Galaxy שלי. הודעה מקורית מאת: Joost van der Sluis תאריך:27/05/2018 20:07 (GMT+02:00) אל: fpc-pascal@lists.freepascal.org נושא: Re: [fpc-pascal] Free e-book: Free Pascal from Square One Op 27-05-18 om 18:18 schreef Jonas Maebe: > See h

Re: [fpc-pascal] Default record fields

2018-06-23 Thread leledumbo via fpc-pascal
http://free-pascal-general.1045716.n5.nabble.com/ ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Lazarus and Linked Lists

2018-06-26 Thread leledumbo via fpc-pascal
> Is there a basic linked List object for Lazarus? https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/src/glinkedlist.pp -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] List of chars for case

2018-07-02 Thread leledumbo via fpc-pascal
rom: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC_PCHAR_LENGTH dog slow

2018-07-03 Thread leledumbo via fpc-pascal
ring length with O(1) length retrieval. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC for linking only

2018-08-20 Thread leledumbo via fpc-pascal
> Is it possible to use FPC for linking only? I've asked this in the past with straight "no" answer. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] Announcement GLPT

2018-09-24 Thread leledumbo via fpc-pascal
> https://github.com/daar/GLPT This is more GLFW rather than GLUT. Good, I prefer it this way as I have much greater control with regards to the event handling. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maill

Re: [fpc-pascal] Uniform initialization?

2018-11-11 Thread leledumbo via fpc-pascal
this would be used, though. Despite being idiomatic in many languages, it doesn't really save much typing that traditional way (if that's the main purpose). -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pasca

Re: [fpc-pascal] Running tests with FPC units only

2018-11-11 Thread leledumbo via fpc-pascal
> acording example I found in FPC examples directory, Check the one here instead: $(fpcsrcdir)/packages/fcl-fpcunit/src/demo/consolerunner/testrunner.pp It depends only on FPC units. I guess you're looking at examples from Lazarus directory instead of FPC. -- Sent from: http://fre

[fpc-pascal] trying to use C code in .pas on WIN32

2019-01-23 Thread conlin664 via fpc-pascal
rnal 'CutilInit'; implementation end. the a CommonTest.pp file: Program commonTest; uses Common; begin writeln('got here'); CutilInit(); end. fpc.exe -TWin32 -Mdelphi -vw -Sg -Ci -O1 -Cp386 -XS -gl -p- -b- is the relevant way I'm invoking fpc It links, b

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-28 Thread conlin664 via fpc-pascal
a pascal program on a windows machine thanks john -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-30 Thread conlin664 via fpc-pascal
H% @set BASE=%cd% %CC% -g -I%BASE% -DGNU_WIN32 -O1 -Wunused-variable -c ccode.c -o ccode.o fpc -MDelphi -MDelphi -vw -Sg -Ci -O1 -Cp386 -OpPENTIUM3 -Ratt ^ -Fu%FPC_BASE%\units\i386-Win32 ^ -Fu%FPC_BASE%\units\i386-Win32\* ^ -Fu%FPC_BASE%\units\i386-Win32\rtl ^ -FlC:\VCAST63\MinGW\lib ^ pcode.pas @set

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-31 Thread conlin664 via fpc-pascal
sven, so I just tried, what I think you said: procedure HelloC; cdecl; external name 'HelloC'; pcode.pas(19,1) Error: Undefined symbol: _HelloC sorry for complaining about windows, but i feel like this is more difficult on windows. All of the FPC examples, seem to run without

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-02-04 Thread conlin664 via fpc-pascal
THANKS GUYS. This is now working. The 'fix' was to actually install fpc 3.0.4 on this machine. My trusty 2.4.4 still compiled just fine what I use it for here at my day job. But it seems 2.4.4 was not really pulling in the static reference. { $L ccode.o } So for anyone else searchi

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-02-05 Thread conlin664 via fpc-pascal
C type calling conventions." so I'm going to stick with cdecl and for now it's working and will be more compatible when I also use this code on MacOs cheers john -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___

[fpc-pascal] How to uninstall old FPC

2019-02-13 Thread list_email--- via fpc-pascal
How do I remove all of FPC 2.6.4 from macOS (11.6.4) so that I can install the newest version? Is everything in /usr/local/bin/ppc386 (see below)? $ fpc Free Pascal Compiler version 2.6.4 [2014/02/26] for i386 Copyright (c) 1993-2014 by Florian Klaempfl and others /usr/local/bin/ppc386 [options

Re: [fpc-pascal] How to uninstall old FPC

2019-02-14 Thread list_email--- via fpc-pascal
> On Feb 13, 2019, at 10:44 AM, Jonas Maebe wrote: > > On 13/02/19 10:55, list_email--- via fpc-pascal wrote: >> How do I remove all of FPC 2.6.4 from macOS (11.6.4) so that I can install >> the newest version? Is everything in /usr/local/bin/ppc386 (see below)? &g

Re: [fpc-pascal] CopyFile for FreePascal without Lazarus?

2019-04-17 Thread leledumbo via fpc-pascal
n5.nabble.com/ _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Improve message "Wrong ppu found"

2019-04-27 Thread leledumbo via fpc-pascal
x27;+PPUFn); utils/ppufiles.pp: Error('Error: Wrong PPU Version : '+PPUFn,false); utils/ppumove.pp: Error('Error: Wrong PPU Version '+tostr(ppuversion)+' in '+PPUFn,false); -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

[fpc-pascal] Does FPC require glibc?

2019-05-06 Thread Nozz via fpc-pascal
Empty Message___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Does FPC require glibc?

2019-05-06 Thread Nozz via fpc-pascal
On Monday, May 6, 2019 10:48 PM, Sven Barth wrote: > Nozz via fpc-pascal schrieb am Mo., 6. Mai > 2019, 22:18: > >> Empty Message > > Depends on what you're using (and the platform). E.g. the compiler itself > runs without glibc on Linux, but if you need to

Re: [fpc-pascal] Using docker to build software

2019-05-28 Thread leledumbo via fpc-pascal
> I am curious to know if there is someone out there that have tried to > use Docker (https://www.docker.com) containers to build fpc applications? Search docker hub, you will find a lot of them, either fpc only, with lazarus, single target or even cross compiling ready. -- Sent from

Re: [fpc-pascal] Documentation generation

2019-08-17 Thread leledumbo via fpc-pascal
> How are the FPC RTL documentations generated? I wanted to see if I could generate .docsets files from them also. A starting point: https://wiki.freepascal.org/FPCDocs_Tutorial I believe that "write me" part is not far from calling make with certain options. -- Sent from: http:

Re: [fpc-pascal] Generic type conflicts

2019-11-02 Thread Cyrax via fpc-pascal
On 02/11/2019 16:55, Ryan Joseph via fpc-pascal wrote: I've wanted to make a generic version of a vector for a while but I always give up because it seems not very possible. It's probably not even a great idea because many methods don't translate between float and integer

[fpc-pascal] FPC cannot understand 1-char string as PChar

2019-11-04 Thread AlexeyT via fpc-pascal
FPC 3.3.1-r43022 [2019/09/16] for Linux x64. This code crashes, because fpc sees 'x', 'y' wrong:   Py_BuildValue('{sLsisisisisisisOsOsOsisisisisisO}',     'tag',     Mark.Tag,     'x',     Mark.PosX,     'y',     Mark.PosY,    

[fpc-pascal] TEventObject.Create site help

2019-11-05 Thread AlexeyT via fpc-pascal
ows only"-> "parameter is used on Windows only" -- Regards, Alexey ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] TEventObject.ManualReset help page

2019-11-05 Thread AlexeyT via fpc-pascal
https://www.freepascal.org/docs-html/current/fcl/syncobjs/teventobject.manualreset.html text is poor, even the text in .Create (about ManualReset) is more detailed, so copy text from .Create to this page. -- Regards, Alexey ___ fpc-pascal maillist

[fpc-pascal] StringList micro optimization

2019-11-07 Thread AlexeyT via fpc-pascal
Procedure TStrings.SetDelimitedText(const AValue: string);  has about 16 calls to Length(AValue), so make a variable NLen to speed up it. -- Regards, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi

[fpc-pascal] TStringList.SetCommaText needs refactor

2019-11-09 Thread AlexeyT via fpc-pascal
e;   end; end; -- Regards, Alexey ___________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] DirectoryExists on FreeBSD 12 problem

2019-11-21 Thread AlexeyT via fpc-pascal
number */ *mode_t      st_mode;        /* inode protection mode */* FPC-- https://github.com/graemeg/freepascal/blob/master/rtl/bsd/ostypes.inc#L65 the 1st freebsd type is compatible with FPC (I checked only by list of fields and order of fields, w/out checking aligns). the 2nd is NOT co

[fpc-pascal] DirectoryExists of FreeBSD 12- Java solution

2019-11-21 Thread AlexeyT via fpc-pascal
ds, Alexey _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Strange experience with TJsonConfig.Clear

2019-11-23 Thread Bart via fpc-pascal
Hi, I experienced some strange behaviour with TJSONConfig.Clear. I'm using fpc 3.0.4 32-bit on Win10-64. (While I do have fpc trunk as well, the program is a Lazaurs GUI program and I don't like using Lazarus (trunk) in combination with fpc trunk.) I have a TJSONConfig that I us

Re: [fpc-pascal] Strange experience with TJsonConfig.Clear

2019-11-23 Thread Bart via fpc-pascal
On Sat, Nov 23, 2019 at 7:47 PM Bart wrote: As I was afraid: User error! Cfg.JSONOptions := Cfg.JSONOptions + [joIgnoreTrailingComma]; This forces a reload of the file (since Filename isn't empty at this point). (B.t.w. fpc trunk raise an error : An unhandled exception occurred at $004

[fpc-pascal] StringList encoding question

2019-12-22 Thread Bart via fpc-pascal
se; {$endif} SL.SkipLastLineBreak := True; S := 'ä'; //S has CodePage CP_UTF8 SL.Add(S); SL.SaveToFile('slU.txt'{$if fpc_fullversion > 30200}, TEncoding.UTF8{$endif}); SL.SaveToFile('slA.txt'{$if fpc_fullversion > 30200}, TEncoding.ANSI{$endif}); SL.Free;

Re: [fpc-pascal] Calling function pointer to main program

2020-01-02 Thread leledumbo via fpc-pascal
re. So you can make your own main in a separate file that must be linked in during linking which calls whatever name you pass to -XM. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______ fpc-pascal maillist - fpc-pasca

[fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread AlexeyT via fpc-pascal
    ini_lexmap:= TIniFile.Create(fn_lexmap_final);     try   ini_lexmap.WriteString('ref', IntToStr(i_sub), s_lexer);     finally   FreeAndNil(ini_lexmap);     end; with FPC trunk it converts .ini file to UTF8 BOM! Bad, because then my code reads this

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread Bart via fpc-pascal
TIniFile manually adds the BOM to the first Line. Then SaveToFile is called, which (if FEncoding = Utf8) will add the BOM again? Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread Bart via fpc-pascal
On Fri, Jan 10, 2020 at 5:57 PM AlexeyT via fpc-pascal wrote: > 1) don't write BOM via WriteString It doesn't AFAICS. The BOM is written in UpdateFile. > 2) if BOM is there, allow ReadString to find section at the file begin: > BOMCHARS[ref] I can read/write IniFiles with

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread AlexeyT via fpc-pascal
>> 2) if BOM is there, allow ReadString to find section at the file begin: I can read/write IniFiles with BOM with fpc r43847, with and withoud DefautSystemCodePage := CP_UTF8. Sorry, my mistake-- TIniFile can read this BOM file, but my software cannot: a) I've fixed one place w

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread AlexeyT via fpc-pascal
Can you add TIniFile.WriteBom property? it's not quite enough, I need to disable it globally in entire app (I have ~10 ini objects), so additional global default is needed (like Lazarus has global variables). -- Regards, Alexey _______ fpc-p

Re: [fpc-pascal] TIniFile.WriteString gives file with BOM, bad

2020-01-10 Thread Bart via fpc-pascal
On Fri, Jan 10, 2020 at 11:30 PM AlexeyT via fpc-pascal wrote: > Can you add TIniFile.WriteBom property? it's not quite enough, I need to > disable it globally in entire app (I have ~10 ini objects), so > additional global default is needed (like Lazarus has global variables). Op

Re: [fpc-pascal] TProcess and zombie processes in *nix systems

2020-01-21 Thread Bart via fpc-pascal
-- Bart _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

  1   2   3   4   5   6   7   8   9   10   >