Sender: aditya AT wipsys DOT soft DOT net Message-ID: <35CB1BE7.5A5783CC@wipsys.soft.net> Date: Fri, 07 Aug 1998 10:23:19 -0500 From: Aditya Kapur Organization: Wipro Systems MIME-Version: 1.0 To: Endlisnis , Peter_Larsen AT vip DOT cybercity DOT dk, djgpp AT delorie DOT com Subject: Re: Compiling Turbo C 2.0 / MS C 5.1 source with DJGPP? References: <3 DOT 0 DOT 5 DOT 32 DOT 19980802095546 DOT 00799470 AT vip DOT cybercity DOT dk> <35C9F440 DOT E1C9C8D0 AT unb DOT ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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 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 ---------------------------------------------------