[fpc-pascal] Mac OS X 10.6.1 problem

2009-10-12 Thread Paul Davidson
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 switch "OBJFPC" not allowed here Any hints? ___ fpc-pascal maillist - fp

[fpc-pascal] More OS X problems

2009-10-13 Thread Paul Davidson
ing is start of file: { tccStack.pas corax60 Created by Paul Davidson on 2005/01/01. Copyright (c) 2005 Corax Networks.Inc.. All rights reserved. } unit cStack; {$I Directives.inc} interface uses SysUtils; type tccStack = class( TObject ) {Barfs here} 2) All .s files

Re: [fpc-pascal] More OS X problems

2009-10-15 Thread Paul Davidson
Thank you Changing the mode in the project fixed all problems. System now compiles correctly. pd On 2009-10-13, at 4:14 PM, Jonas Maebe wrote: Paul Davidson wrote on Tue, 13 Oct 2009: OS X 10.6.1 FPC 2.2.4 Xcode 3.2 (64 bit) Using code base that has complied correctly since 2004

[fpc-pascal] MySQL

2009-10-15 Thread Paul Davidson
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 as template. Any hints please? ___ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] MySQL

2009-10-15 Thread Paul Davidson
references to this library. Any further hints? Thank you On 2009-10-15, at 7:13 AM, Jonas Maebe wrote: On 14 Oct 2009, at 18:14, Paul Davidson wrote: 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

Re: [fpc-pascal] MySQL

2009-10-15 Thread Paul Davidson
Here is the head of the unit: { cMySQL.pas cape61 Created by Paul Davidson on 2005/01/18. Copyright (c) 2005 Corax Networks.Inc.. All rights reserved. } unit cMySQL; {$I Directives.inc} interface {$linklib libmysqlclient.a} uses cBase, cKey, cStack, mysql4

Re: [fpc-pascal] MySQL

2009-10-16 Thread Paul Davidson
dsl-corax:~ pauldavidson$ lipo -info /Users/pauldavidson/dev/cape96/ libmysqlclient.a input file /Users/pauldavidson/dev/cape96/libmysqlclient.a is not a fat file Non-fat file: /Users/pauldavidson/dev/cape96/libmysqlclient.a is architecture: x86_64 Noted that Xcode is set for 32 bit univers

Re: [fpc-pascal] MySQL

2009-10-16 Thread Paul Davidson
Ok, 32 bit universal it is! Is there any database access method that works with this mode for 10.6.1? And how? Again, thank you On 2009-10-16, at 8:59 AM, Jonas Maebe wrote: On 16 Oct 2009, at 14:51, Vincent Snijders wrote: Jonas Maebe schreef: That's correct, FPC 2.2.4 only support

Re: [fpc-pascal] MySQL

2009-10-16 Thread Paul Davidson
Now have proper version of MySQL on machine Thank you all for help. Compiles and mostly runs :) On 2009-10-16, at 9:21 AM, Jonas Maebe wrote: On 16 Oct 2009, at 15:12, Paul Davidson wrote: Ok, 32 bit universal it is! Is there any database access method that works with this mode for

Re: [fpc-pascal] Who said Pascal isn't popular

2009-10-16 Thread Paul Davidson
If memory serves... Microsoft for first few version of DOS used assembler. This proved expensive for Microsoft as the number of people willing to program in intel assembler was quite limited. Microsoft kept hearing about this C programming language which students at MS were talking about

Re: [fpc-pascal] db2 connection component

2005-12-03 Thread Paul Davidson
Mr. Bee, let me know if one turns up! Thanks On Dec 3, 2005, at 8:13, Bisma Jayadi wrote: Dear all, I'm currently trying to convert a Delphi database application which access an IBM DB2 database server through dbExpress component, onto Lazarus (FPC). I think the TxxxConnection database conne

[fpc-pascal] ppas.sh

2005-12-13 Thread Paul Davidson
Trying to compile app. Free Pascal Compiler version 2.0.2 [2005/11/15] for powerpc Mac OS X 10.3 Compilation end with: Closing script build/cape90.build/cape90.build/ppas.sh 263 Lines compiled, 0.8 sec Any hints? P Davidson ___ fpc-pascal maillist -

Re: [fpc-pascal] ppas.sh

2005-12-13 Thread Paul Davidson
Problem solved. Turned out to be corrupt project file(s). i.e. app.1 or app.xcode. Created new project, copied over source. Joy. On Dec 13, 2005, at 15:04, Vincent Snijders wrote: Paul Davidson wrote: Trying to compile app. Free Pascal Compiler version 2.0.2 [2005/11/15] for powerpc Mac OS

[fpc-pascal] astring.pas

2005-12-16 Thread Paul Davidson
Darwin 2.1.1 today astrings.inc(88,1) Fatal: Syntax error, "BEGIN" expected but "shl" found astrings.inc(88,1) Fatal: Compilation aborted P Davidson http://CoraxNetworks.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freep

Re: [fpc-pascal] Object pascal a "Modern Language"

2006-03-03 Thread Paul Davidson
Mild Pascal rant: Thank you for considering Pascal. Contrary to popular belief, Pascal is indeed a modern language. Though developed some time ago it has evolved the to include most of the extensions seen in 'modern' languages. It should be noted that modern is not synonymous with recently

Re: [fpc-pascal] 64 bits

2006-03-20 Thread Paul Davidson
Works from here On Mar 20, 2006, at 15:46, constantijnw wrote: Michael Van Canneyt wrote: On Mon, 20 Mar 2006, constantijnw wrote: Vincent Snijders wrote: constantijnw wrote: Hi, FPC programming for 64 bits processors; anyone written some helpful guidelines, article, etc.? There

[fpc-pascal] Async

2006-04-03 Thread Paul Davidson
Any code examples using FPC libsync available. Thanks P Davidson Corax Networks Inc. http://CoraxNetworks.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] google summer of code?

2006-04-27 Thread Paul Davidson
Speculation and rumor are more fun On Apr 27, 2006, at 15:44, Marc Santhoff wrote: Am Donnerstag, den 27.04.2006, 14:22 -0300 schrieb John Coppens: On Thu, 27 Apr 2006 13:20:39 -0300 "Flávio Etrusco" <[EMAIL PROTECTED]> wrote: Or because opensource world tends to be C-centric, or because FPC

Re: [fpc-pascal] Any Carbon users around?

2004-11-17 Thread Paul Davidson
On Nov 17, 2004, at 12:43, Kris Herlaar wrote: So i'd like to know if there are more Mac users on this list who might be interested in sharing their knowledge with me and each-other. I'd be delighted to set up a website with the Pascal for Mac OS X topic, at least if i'm not going to be the onl

Re: [fpc-pascal] Any Carbon users around?

2004-11-18 Thread Paul Davidson
Am porting a Delphi app to OS X. Having fun with threads, sockets and (n)curses. This should be fun P Davidson Corax Networks Inc. http://CoraxNetworks.com ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pasc

Re: [fpc-pascal] reporting bugs? ... fpc 1.9.4 crash

2004-11-20 Thread Paul Davidson
If you are in TB or DELPHI mode, then IX may be defined as a CPU register On Nov 20, 2004, at 15:30, David Emerson wrote: Is there a better place to post bugs, outside the list? Well, regardless, here it is... fpc 1.9.4 crashes with the following source. Of course, my bug was easy enough to find

Re: [fpc-pascal] Threading

2004-11-26 Thread Paul Davidson
It works under Delphi/Windows. If that has any weight? On Nov 26, 2004, at 15:13, Jonas Maebe wrote: On 26 nov 2004, at 21:02, Paul Davidson wrote: fpc 1.9.5 [2004/11/26] Darwin 10.3 And for the record: it's the same under Linux/x86, it's not Darwin or Mac OS X specific. But I ha

[fpc-pascal] Odd CRT

2004-12-28 Thread Paul Davidson
OS X 10.3.6 This code makes a window area in center of screen, and prints in that area. The new window is filled with characters when DELLINE is used. Any hints? program TestCRT; uses CRT; var f : text; procedure win( s : string ); begin Window( 1, 3, ScreenWidth, ScreenHeight - 2 );

[fpc-pascal] (no subject)

2004-12-28 Thread Paul Davidson
OS X 10.3.6 This code makes a window area in center of screen, and prints in that area. The new window is filled with characters when DELLINE is used. Any hints? program TestCRT; uses CRT; var f : text; procedure win( s : string ); begin Window( 1, 3, ScreenWidth, ScreenHeight - 2 );

Re: [fpc-pascal] Nonfunctional debugger on OS X

2005-01-29 Thread Paul Davidson
Using XCode as well. It would be good idea to upgrade your compiler to 1.9.6. Go to directory containing fpc dir and: cvs -z 3 -d :pserver:[EMAIL PROTECTED]:/FPC/CVS checkout -r RELEASE_1_9_6 Build instructions are at http://www.surtec.com/~rj/Xcode-FreePascal/#FPC/CVS-Quickstart As far a

[fpc-pascal] Debugger on OS X

2005-01-30 Thread Paul Davidson
1) Is it possible to view strings in XCode (1.5). At present can only see first char ( C style char) 2) Any testing of fpc on Tiger yet? May be getting developer version next week P Davidson Corax Networks Inc. http://CoraxNetworks.com ___ fpc-pasca

Re: [fpc-pascal] FPC 1.9.8 - new TThread warning?

2005-02-25 Thread Paul Davidson
Remove $THREADING directive. It is now built in On Feb 25, 2005, at 8:07, chromdildo wrote: Hello, Great! just picked it up few minutes before announced :) now it throws warning (1.9.6 didn't) Warning: Illegal compiler directive "$THREADING" (I used {$THREADING ON} as described in the docs) I foll

[fpc-pascal] OS X Tiger

2005-04-29 Thread Paul Davidson
Any tests done on Tiger with FPC? Anything pending? (32 or 64 bit) P Davidson Corax Networks Inc. http://CoraxNetworks.com IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to which it is addressed. The message may contain information that is privileged, con

Re: [fpc-pascal] OS X Tiger

2005-04-30 Thread Paul Davidson
Will the FreePascalForXcode1.1.dmg work with XCode 2? On Apr 29, 2005, at 13:23, Jonas Maebe wrote: On 29 apr 2005, at 19:14, Paul Davidson wrote: Any tests done on Tiger with FPC? Not by me. Anything pending? Not until I get it via ADC, which could easily take another month. But I do not expect

Re: [fpc-pascal] exit ?

2005-05-25 Thread Paul Davidson
Perhaps combinations of RESULT and EXIT may help? if TimeToLeave then begin Result := 5; Exit; end else On May 25, 2005, at 12:33, Jonas Maebe wrote: On 25 mei 2005, at 18:20, Tony Pelton wrote: over and above any philisophical judgments on my programming technique, I see Fr

[fpc-pascal] cMem, cThreads

2005-07-14 Thread Paul Davidson
Does cThreads require cMem in program uses clause? i.e. uses cMem, cThreads, etc. It appears that removing cMem causes memory corruption in Darwin. Thanks P Davidson Corax Networks Inc. http://CoraxNetworks.com ___ fpc-pascal maillist - fpc

[fpc-pascal] Recursion

2005-07-17 Thread Paul Davidson
Having problem with app. It is rule based, and operates with recursion. Events, such as HTTP requests, timers etc, are processed in separate threads such that rule engine can handle more than one request at a time. When a rule cascade recurses for 10th time, a thread dies. But only first ti

[fpc-pascal] Dynamic-linker

2005-09-02 Thread Paul Davidson
fpc 2.1.1 (2005/07/24) Darwin When compiling with -pg (generate profiling data) linker complains with: /usr/bin/ld: unknown flag: -dynamic-linker= P Davidson Corax Networks Inc. http://CoraxNetworks.com IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to

[fpc-pascal] fpGetRUsage

2005-09-02 Thread Paul Davidson
Trying to get fpGetRusage to work. Using: function fpGetRUsage( who : cint; data : pRUsage ) : cint; cdecl; external 'c' name 'getrusage'; But this gives silly results. Any hints? P Davidson Corax Networks Inc. http://CoraxNetworks.com IMPORTANT NOTICE: This message is intended only for the

[fpc-pascal] fpGetRUsage

2005-09-02 Thread Paul Davidson
(Oops) Trying to get fpGetRusage to work WITH DARWIN. Using: function fpGetRUsage( who : cint; data : pRUsage ) : cint; cdecl; external 'c' name 'getrusage'; But this gives silly results. Any hints? P Davidson Corax Networks Inc. http://CoraxNetworks.com IMPORTANT NOTICE: This message is in

Re: [fpc-pascal] fpGetRUsage

2005-09-08 Thread Paul Davidson
On Sep 7, 2005, at 13:45, Jonas Maebe wrote: On 31 Aug 2005, at 15:52, Paul Davidson wrote: Trying to get fpGetRusage to work WITH DARWIN. Using: function fpGetRUsage( who : cint; data : pRUsage ) : cint; cdecl; external 'c' name 'getrusage'; But this gives silly resul

[fpc-pascal] Darwin compilation

2005-09-12 Thread Paul Davidson
Darwin fails make all. Checked out revision 1075. genmath.inc(1115,28) Fatal: Internal error 200507161 genmath.inc(1115,28) Fatal: Compilation aborted make[7]: *** [system.ppu] Error 1 make[6]: *** [darwin_all] Error 2 make[5]: *** [rtl] Error 2 make[4]: *** [next] Error 2 make[3]: *** [ppc2] Err

Re: [fpc-pascal] fpGetRUsage

2005-09-12 Thread Paul Davidson
RUsage is not declared anywhere in app o.0 RUsage is defined in ostypes.inc for BSD. fpGetRUsage is as well, but does not resolve in Darwin. On Sep 8, 2005, at 3:39, Jonas Maebe wrote: On 7 sep 2005, at 20:21, Paul Davidson wrote: Trying to get fpGetRusage to work WITH DARWIN. Using

Re: [fpc-pascal] Darwin compilation

2005-09-13 Thread Paul Davidson
errors compiling module, stopping h2pas.pas(2879,15) Fatal: Compilation aborted make[3]: *** [h2pas] Error 1 make[2]: *** [h2pas_all] Error 2 make[1]: *** [utils_all] Error 2 make: *** [build-stamp.powerpc-darwin] Error 2 On Sep 13, 2005, at 16:55, Florian Klaempfl wrote: Paul Davidson wrote

[fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Paul Davidson
Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := ( mSec mod 1000 ) * 1000; p := @t; if SetSocketOptions( fSocket, SOL_SOCKET, SO_SNDTIMEO, p, SizeOf( t ) ) <> 0 etc returns

Re: [fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Paul Davidson
Thanks, Marco, Anton. Select it is! On Sep 14, 2005, at 9:08, Marco van de Voort wrote: Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := ( mSec mod 1000 ) * 1000; p := @t

[fpc-pascal] Various Darwin problems

2005-10-11 Thread Paul Davidson
Last couple update to fpc 2.1.1 for Darwin have been broken Here are some symptom: At times XCode debugger stops program/trace with SIGSEGV TThread creation seems about 10 times faster. Sleep( 1 ) does not sleep for one milli-second, more llike 0. There may be inconsistent results with critical

Re: [fpc-pascal] Various Darwin problems

2005-10-11 Thread Paul Davidson
Lets wait for debug to return before making any changes. Will investigate further at that time On Oct 11, 2005, at 7:46, Marco van de Voort wrote: On 11 okt 2005, at 13:11, Paul Davidson wrote: Don't know what changed here. The sleep was changed from select to nanosleep. It seems

Re: [fpc-pascal] Various Darwin problems

2005-10-11 Thread Paul Davidson
On Oct 11, 2005, at 7:18, Jonas Maebe wrote: TThread creation seems about 10 times faster. Don't know what changed here. Looking at RTL, Threads are now using semaphores instead of pipes for suspend/resume. This may be reason for increased speed. Jonas

Re: [fpc-pascal] Various Darwin problems

2005-10-11 Thread Paul Davidson
Tested some sleep and nano sleep functions. They seems to work well, given the limits of Darwin OS. Now tracking possible suspend/resume issues. On Oct 11, 2005, at 8:35, Jonas Maebe wrote: On 11 okt 2005, at 14:25, Felipe Monteiro de Carvalho wrote: The sleep was changed from select to nan

Re: [fpc-pascal] Various Darwin problems

2005-10-11 Thread Paul Davidson
Tests where with app that monitors to at least mS intervals. Results are consistent with past runs. Altering internal fixed delays of +/- 1 mS reported acceptable results. On Oct 11, 2005, at 8:44, Jonas Maebe wrote: On 11 okt 2005, at 14:39, Paul Davidson wrote: Tested some sleep and

Re: [fpc-pascal] Various Darwin problems

2005-10-11 Thread Paul Davidson
Modified program by creating threads resumed (not suspended), then using new loop to start each one. Though new loop completes, and threads are created (31 inclucing process), they refuse to be terminated. It seems that RESUME, at least from another thread, if faulty. As well, CPU utilizatio

[fpc-pascal] Missing MySQL4?

2005-10-15 Thread Paul Davidson
Latest 2005/10/15 trunk seems to miss MySQL4 unit from packages. Source is in rtl, but not compiled and / or installed P Davidson ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Packages missing

2005-10-16 Thread Paul Davidson
Cannot compile using latest 2.1.1 or 2.0.1 MySQL, MySQL4 and NetDB are not found P Davidson Corax Networks Inc. http://CoraxNetworks.com IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to which it is addressed. The message may contain information that i

Re: [fpc-pascal] Packages missing

2005-10-16 Thread Paul Davidson
Cannot compile using latest 2.1.1 or 2.0.1 MySQL, MySQL4 and NetDB are not found MySQL no longer exists, it's either MySQL4 or MySQL3, but they are distributed. NetDB should normally always be distributed. What platform are you using ? Michael. ___

Re: [fpc-pascal] Packages missing

2005-10-16 Thread Paul Davidson
UBF* Sorry folks. All is well. Turned out to be fault of author of this mail. *UBF - User brain failure On Oct 16, 2005, at 13:55, Paul Davidson wrote: Cannot compile using latest 2.1.1 or 2.0.1 MySQL, MySQL4 and NetDB are not found MySQL no longer exists, it's either MySQL4 or M

[fpc-pascal] Threads

2005-10-28 Thread Paul Davidson
Would it be possible to add a property to TThreads to expose DefaultStackSize in rtl/inc/threadh.inc Or something similar. Working on app that uses lots of complex recursion. Ran into problems and ended rewriting this component. In order to meet stack size limit, program runs much slower.

Re: [fpc-pascal] Threads

2005-10-28 Thread Paul Davidson
On Oct 28, 2005, at 9:12, Michael Van Canneyt wrote: On Fri, 28 Oct 2005, Paul Davidson wrote: Would it be possible to add a property to TThreads to expose DefaultStackSize in rtl/inc/threadh.inc Or something similar. It should be possible, yes, however this will require that the stack

Re: [fpc-pascal] Systems 2005: A first summary

2005-10-29 Thread Paul Davidson
One must start X-Windows from terminal, then start Lazarus. You could also try this site. All are .dmg files, friendly to Macs Try http://www.ca.freepascal.org/Lazarus/ On Oct 29, 2005, at 16:11, Éric DÉTREZ wrote: Le 29 oct. 05 à 21:22, Florian Klaempfl a écrit : When we asked, did you try

[fpc-pascal] CASE

2005-11-07 Thread Paul Davidson
May be having case statement problem. App has case statement with 146 sequential labels. They are in order, from a defined type. The assembler output is scanning each label, where it seems a jump would be more efficient. ppc 32, Darwin /usr/local/bin/ppcppc cape80.pas -Ci -Co -g -gl -O1 -vr -a

Re: [fpc-pascal] CASE

2005-11-08 Thread Paul Davidson
On Nov 8, 2005, at 11:39, Eduardo wrote: At 04:42 08/11/2005, you wrote: May be having case statement problem. App has case statement with 146 sequential labels. They are in order, from a defined type. The assembler output is scanning each label, where it seems a jump would be more efficient

Re: [fpc-pascal] CASE

2005-11-08 Thread Paul Davidson
Jump by offset label number? I don't understand it. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Sorry Eduardo, am not knowledgeable of compiler internals. There is (?) an optimi

Re: [fpc-pascal] CASE

2005-11-08 Thread Paul Davidson
On Nov 8, 2005, at 12:11, Peter Vreman wrote: # [735] case l3o3.FormType of // Select 3o3 processor lwz r2,160(r1) cmplwi cr0,r2,0 beq cr0,L1051 cmplwi cr0,r2,1 beq cr0,L1052 cmplwi cr0,r2,2 beq cr0,L1053 cmplw

Re: [fpc-pascal] CASE

2005-11-09 Thread Paul Davidson
Thanks Adriaan, Marco. All is well :) On Nov 9, 2005, at 4:38, Marco van de Voort wrote: -O1gr P Davidson Corax Networks Inc. http://CoraxNetworks.com IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to which it is addressed. The message may contain i

Re: [fpc-pascal] Download file

2005-11-17 Thread Paul Davidson
The silly answer. Construct an HTTP message according to IETF/W3C rules. Better answer. Assuming you have a socket connection open, the following should be included in your message: HTTP/1.0 200 Connection: Close Content-length: Content-type: MIME-version:1.0 The above should be in singl

Re: [fpc-pascal] Download file

2005-11-17 Thread Paul Davidson
It does not work as is on Mac, but then, most people don't care. *cry* On Nov 17, 2005, at 18:42, L505 wrote: Question: I would like to download a file via HTTP, how can I achieve that in a Synapse is nice.. Note: It is not 100 percent platform independent. (works on Linux and Windows poss

Re: [fpc-pascal] Download file

2005-11-18 Thread Paul Davidson
Nice rant :) On Nov 18, 2005, at 15:48, L wrote: It does not work as is on Mac, but then, most people don't care. *cry* I would consider a Mac if they didn't weld them shut like those iMacs. Talk about closed source hardware. Of course for every complaint I make someone will come b