Stuart Hall wrote:
I have just updated my SuSE 6.1 system to SuSE 6.4 and I have broken something relating to <unistd.h> I think, or perhaps I have some compiler switches incorrectly turned on.
I have always been getting a "implicit declaration of 'int ioperm(...)'" warning when compiling my C++ program that reads from a parallel port.
However, now with my new gcc compiler (and its corresponding new libraries) I am getting this same warning, but it is a fatal error - Error 1 - and stops further compilation. Any ideas what compiler switches I need to turn off to get this thing to compile without warning?
You should assume that warnings from the compiler should be looked into and review your code. They are not meant to be ignored forever. The earlier version of the compiler let you get away with that warning. If you read the man page for ioperm, you'll notice that unistd.h has a prototype of that function if you use libc5. SuSE 6.1 and later are based in glibc, so you should use <sys/io.h>. -- Rafael Herrera -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/