From: "Dimitris Vayenas" <dimitrisv@iee.org.uk>
Subject: Access counter set up Compilation Problems
Date: 1996/08/26 [thread overview]
Message-ID: <01bb9372$ca113220$010200c0@hol.hol.gr> (raw)
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
$___________________________________________
reply other threads:[~1996-08-26 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox