Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP and FreePascal From: Ola Presterud References: <17cd177c DOT 0305200413 DOT 4bc58e68 AT posting DOT google DOT com> Message-ID: User-Agent: Xnews/5.04.25 Lines: 30 NNTP-Posting-Host: 80.212.240.140 X-Complaints-To: news-abuse AT telenor DOT net NNTP-Posting-Date: Tue, 20 May 2003 20:15:17 MEST X-Trace: news2.ulv.nextra.no 1053454517 80.212.240.140 Date: Tue, 20 May 2003 18:15:17 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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