Mail Archives: djgpp/1996/12/19/22:40:37
On 15 Dec, in article <591gbk$3sf AT salomon DOT mchp DOT siemens DOT de>
lauther AT cayley DOT zfe DOT siemens DOT de "Ulrich Lauther" wrote:
> I need to port some plain vanilla C++ programs (no access to
> special hardware resources, no GUI programming, just computation)
> from Unix (Solaris, Linux) to NT 4.0.
> Do I want djgpp or the cygnus port of g++?
If it is plaain vanilla C++ as you say it is, then it will compile without
hitch in DJGPP.
If however, you use something like curses or <unistd.h> then you may have to
be careful, however DJGPP does make porting easier by supporting many UNIX
features like the aforementioned.
I think the rsx thingy is now based on djgpp, but you'll probably only need
that if you want to add Windowsy things.
:sb) please send mail to <tw104 AT york DOT ac DOT uk> http://www.york.ac.uk/~tw104/
--
#include <stdio.h> /* The .splitbung super .sig system! */
#include <string.h>
main(){FILE*f;int c[1];char s[99];puts("sig:");fgets(s,99,stdin);if(!*c=strchr(s
,'\n'))s[c=0;f=fopen(s,"r");while((c=getc(f))!=EOF)putchar(c);f&&fclose(f)
- Raw text -