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
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
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 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
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
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
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
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
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
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
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
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 -
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
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
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
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
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
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
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
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
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
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
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 );
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 );
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
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
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
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
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
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
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
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 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
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
(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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
___
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
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.
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
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
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
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
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
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
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
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
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
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
62 matches
Mail list logo