Are there any special compiler options that I have to use to compile under linux? I tried to compile my own customized version of ls under linux (which works perfectly, as far as I know, under HP-UX) and, though it compiles without any apparent trouble, it coredumps when it trys to execute i/o functions (sprintf when compiled with pgcc and strcmp when compiled with either cc or gcc). I've looked at the linux man pages for those functions and my #includes seem to be ok. Here's a copy of them, just in case: #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <dirent.h> #include <sys/stat.h> #include <string.h> #include <pwd.h> #include <grp.h> #include <time.h> #include <unistd.h> I don't even know if this is really the source of the problem but, until now, it seems the most probable. Any insight would be appreciated. And, as long as I'm asking about programming, are there any recommended books on linux programming? I know O'Reilly has one and I was thinking of getting it but wanted to check here first and make sure. DvB
