Re: [fpc-pascal] How to include Carbon.h?

2007-04-19 Thread BlueCat
Ingemar Ragnemalm wrote: > > > So the Pascal code compiles, links with the RB code, but crashes when it > runs? How far does it run? > [snip] > > Thanks you, Jonas and Ingmal. Here is an example. Library stub; {$calling mwpascal} uses CarbonEventsCore; function aint(i : smallint) : small

Re: [fpc-pascal] How to include Carbon.h?

2007-04-19 Thread Ingemar Ragnemalm
Hello, Pascal folks, I'm using FPC 2.0.4 on MacOSX 1.4.9 PPC and trying to write a Pascal library that is externally called from REALbasic (Rb). But Rb needs Carbon.h header included in dylibs which are called by Rb programs. In C, it's easy: #include "Carbon/Carbon.h" Unfortunately, I am n

Re: [fpc-pascal] How to include Carbon.h?

2007-04-19 Thread Jonas Maebe
On 19 apr 2007, at 11:01, BlueCat wrote: I'm using FPC 2.0.4 on MacOSX 1.4.9 PPC and trying to write a Pascal library that is externally called from REALbasic (Rb). But Rb needs Carbon.h header included in dylibs which are called by Rb programs. In C, it's easy: #include "Carbon/Carbon.h

[fpc-pascal] How to include Carbon.h?

2007-04-19 Thread BlueCat
Hello, Pascal folks, I'm using FPC 2.0.4 on MacOSX 1.4.9 PPC and trying to write a Pascal library that is externally called from REALbasic (Rb). But Rb needs Carbon.h header included in dylibs which are called by Rb programs. In C, it's easy: #include "Carbon/Carbon.h" Unfortunately, I am not