[fpc-devel]Exporting variables in libraries for Linux / FreeBSD

Maarten Bekers elevator at planet.nl
Fri Feb 14 21:09:21 CET 2003


hey Anton,

> In Free Pascal Programmer's Manual, 7. 2., I didn't find anything about
> restrictions for exporting variables. Where did you read that? And what
kind
> of library (static, shared, ..) is it?
It's very simple.

Try compiling this:

-cut-
library test;

var o: integer;

exports
  o;

end.
-cut-

it will compile on Win32, but just refuse to compile on Linux. When you
search on the error the compiler generates, you'll find the docs that
explain that exporting of variables is only supported on Win32.

Sincerely,
Maarten.




More information about the fpc-devel mailing list