Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Access counter set up Compilation Problems
@ 1996-08-26  4:00 Dimitris Vayenas
  0 siblings, 0 replies; only message in thread
From: Dimitris Vayenas @ 1996-08-26  4:00 UTC (permalink / 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
$___________________________________________                               
                                                               





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-08-26  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-26  4:00 Access counter set up Compilation Problems Dimitris Vayenas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox