To: ross AT ces DOT teradyne DOT com (John Ross ) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Help a New Guy Out Date: Tue, 17 Jan 95 08:44:03 +0200 From: "Eli Zaretskii" > At work, I am unix based so this compiler is attractive where my > class is pc baed. My problem is that I have no idea on how to start > this compiler. I have read the readme files, modified the config.sys > and autoexec, yet cannot get off the ground. Can anyone help a new > guy out? What seems to be the problem? If you are Unix user, and used some C compiler in the past, then you know how to call these: gcc -c source.c -- to compile source.c into source.o gcc -o myprog myprog.c sub1.c sub2.c ... -- to produce executable program myprog gcc -o myprog myprog.o sub1.o sub2.o ... -- same, but after they are already compiled Two main things in which DJGPP differs from a Unix GCC usage: 1) To produce an .exe file, you should do this: coff2exe myprog where myprog is the result of the linker step as above. This will produce myprog.exe which you can run. Alternatively, you can run myprog directly, like this: go32 myprog [args...] Go32.exe is in your bin subdirectory of the main DJGPP directory. 2) If you use PC-specific library routines like cprintf() and inportb(), put -lpc at the end of the link command line, like this: gcc -o myprog myprog.o sub1.o ... -lpc If this doesn't get you off the ground, tell me more about what specifically doesn't work and what error messages do you see.