Mail Archives: djgpp/2003/05/20/14:30:20
gautier_niouzes AT hotmail DOT com (Gautier) wrote in
news:17cd177c DOT 0305200413 DOT 4bc58e68 AT posting DOT google DOT com:
> Ola Presterud:
>
>> I have a large application originaly made with Borland Pascal for DOS
>> 16- bit DPMI. My intention is it port this application to C++ and the
>> DJGPP compiler, but I whish it would be possible to do it on steps.
>>
>> FreePascal seems to be a more compatible BP compiler than GNU Pascal,
>> so I am wondering if it is possible to link libraries compiled with
>> FreePascal together with DJGPP without any big problems? (also to use
>> code compiled with DJGPP in FreePascal might be possible)
>
> Did you consider also porting to Ada95 - eventually linking to C++
> parts ? Ada is structured like Pascal and you will escape from the
> "incompatible dialects" problem. Of course, it depends on your needs.
> e.g. if the application is DJGPP-only and not to be ported, there can
> be more specific solutions.
Ada is no option, since the software needs to tbe in C++ for future use
in Windows or Linux. The reason for using FreePascal as a middle is that
it can take the existing source with very little modifications.
But after browsing a little, it seems like FPC and C works fine. But
linking FPC with C++ code is not yet implemented (but is mentioned).
Ola
- Raw text -