From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c53f06e1a8b04d97,start X-Google-Attributes: gidfee84,public From: "Dimitris Vayenas" Subject: Access counter set up Compilation Problems Date: 1996/08/26 Message-ID: <01bb9372$ca113220$010200c0@hol.hol.gr>#1/1 X-Deja-AN: 176581335 content-type: text/plain; charset=ISO-8859-7 organization: Hellas On Line mime-version: 1.0 newsgroups: comp.unix.osf.osf1 Hi! I am to ask for your help in a complilation problem for the programm by M. Moquit -"the industry standard". It concerns the library string.h and the more specific concern has to do with the functions "strncpy" and "strcpy". I try to compile a program that uses these two functions in the format: strcpy (x.x) and strncpy (x,x,x) and my Compiler (in a DEC AlphaServer) gives me the error that are redeclared and "Incompatible function return type for this function". I go to the string.h to find out that in the section where the error occurs these functions are declared as fn(x), but down below there are modes where can be declared as fn(x,x) and fn(x,x,x). The question is how can I change mode? one is _NO_PROTO and the other _STDC_. When I use, lets say cc -D_NO_PROTO nothing (good) happens In addition the "O_RDWR" is not recognised by my compiler in one case. Can one think of any cause? Please help - it is obvious that the author is new to C compilation with UNIX OSF/1 Best regards Dimitrius ________________________________________ $ $ Dimitris Vayenas $ http://users.hol.gr/~divagenas $___________________________________________