tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Dimitris Vayenas" <dimitrisv () iee ! org ! uk>
To: tru64-unix-managers
Subject: Help your newest colleague - you can!
Date: Sun, 25 Aug 1996 15:02:52 +0000	[thread overview]
Message-ID: <96076337821641.tru64-unix-managers.marc@archive.invalid> (raw)

I just started with a new AlphaServer Internet version and the first thing
I tried to do was to set up the faboulus program by M. Moquit.

Well here is a list of difficulties I came accros and I wonder if somebody
else has shared (and solved ) these in the past.

1.  In the makefile I had to set the option Olimit to ahigh value since the
default of my comp was 500

2. while compiling the main.c  the parameter _O_RDWR was not recognised
whereis in the line just above there was no problem with the same parameter
! (what is it anyway?). But since it was placed on a subroutine relevant to
Win32 installation I made this "if.. then" a comment

3. So the main.c compiled ok 

4. Went to compile parse.c and here the problem concerns the library 
string.h and the more specific concern has to do with the functions 
"strncpy" and "strcpy".
The parse.c  program  uses these two function 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 bellosw 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 happens

Please help

Best Regards

Dimitrius
__________________________________________
$
$	Dimitris Vayenas
$	http://users.hol.gr/~divagenas
$___________________________________________                               
                                                               

                 reply	other threads:[~1996-08-25 15:02 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