[fpc-pascal]FPC/Linux - how to link with c/c++ programs ?
pfv at cooldown.demon.nl
pfv at cooldown.demon.nl
Wed Sep 13 12:49:48 CEST 2000
> Hello.
> I'm new to this list, so sorry if I'm asking about obvious things.....
> Recently I've installed FPC 1.0 for Linux. It works fine - I have ported
> several of my old BP7/DOS programs, but now I want to know how to link
> procedures/libraries written in Pascal with c/c++ programs under Linux.
> Exactly, I need to link some numerical procedures I wrote in Pascal with a
> Linux program written in c++ (compiled with gcc). This is 3000+ lines of
> Pascal code so I'm looking for any other solution than convert it to c...
>
> - Is it possible ?
> - Where can I find any exapmles of such 'mixed' programs ?
It's atm. only possible to link c programs within pascal programs. C++ support
will be worked on this year.
The other way using Pascal in C also needs some more research as the
initialization code for Pascal needs to be called before you can use it.
C uses .ctor and .dtor or something like that but there is no documentation
about such things, so support still hasn't added
More information about the fpc-pascal
mailing list