Mail Archives: djgpp/1998/08/11/06:11:35
i have just ported an application from Borland C++ to djgpp.
there are several changes.
movmem -> memmove
strncmpi -> strnicmp
farmalloc -> malloc
farfree -> free
use #include <unistd.h> for SEEK_SET etc.
i have made all these functions in a file and included that in the
project.
aditya
Endlisnis wrote:
>
> Nils Emil P. Larsen wrote:
>
> > Is it possible to compile Turbo C 2.0 / MS C 5.1 source with DJGPP?
> > I can send the source to anyone interested to help me.
> > Please answer to my e-mail address too, I am not on the list anymore...
> > Nils Emil P. Larsen
>
> If the program is completely ANSI complient, it should work. I've
> converted alot of code from Borland C++ v3.1 to DJGPP. There are only a
> few things that usually need changing. Most C/C++ programs written in a
> 16-bit environment assume that 'int' or 'unsigned' or 'signed' will be
> 16-bit. So if you change all of the 'int's to 'short' and the other
> varients it should work with the execption of anything that uses assembler,
> interrupts, interrupt remapping, or EMS/XMS. The assembler code can be
> converted, so can the interrupt stuff, and EMS/XMS stuff is handled
> automatically (sortof).
--
--------------------------------------------------
Aditya Kapur Wipro Infotech Ltd.
Sr. Systems Engg. 40/1A Lavelle Road,
Ph 080-2215010 Extn 109 Bangalore -1, INDIA
---------------------------------------------------
- Raw text -