Am Sunday, dem 03. Jul 2005 schrieb Andres K. Foerster:
> Hello,
>
> I have a problem with the graph unit. The program compiles fine under
> GNU/Linux, but not on FreeBSD. The SVGAlib is installed. But when
> linking I get the following:
>
> | Linking grquiz
> | /usr/local/lib/fpc/2.0.0/units/
Marcel Martin wrote:
> Hello,
>
> I need to know *at compile time* whether the type Real is
> Single or Double. Currently, I use this
>
> {$IFDEF FPC_HAS_TYPE_DOUBLE}
> ...
> {$ELSE}
> {$IFDEF FPC_HAS_TYPE_SINGLE}
> ...
> {$ELSE}
> {$FATAL Type Real should be defined as Single or as Double}
>
> | procedure my_procedure(var a_record: t_my_record);
> |
> | In this case, a simple pointer is passed to my_procedure. This is also
> | the way most C libraries work, passing a pointer to a structure.
>
> Would a C program be able to call a Pascal SO or DLL file and directly read a
> record from
Hello,
I need to know *at compile time* whether the type Real is
Single or Double. Currently, I use this
{$IFDEF FPC_HAS_TYPE_DOUBLE}
...
{$ELSE}
{$IFDEF FPC_HAS_TYPE_SINGLE}
...
{$ELSE}
{$FATAL Type Real should be defined as Single or as Double}
{$ENDIF} // FPC_HAS_TYPE_SINGLE
{$ENDIF} // F
L505 wrote:
|
| Or if you wanted to prepend exceptions rather than catch them, the following
| function could also work have worked (note you have to do a shortString cast,
| AnsiStrings don't like access by character)
|
I was under the same impression for a long time, but some of the FPC RTL s