🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51371

Gcc 2.4.0 on alliant

#51371
From: Brian Jones
Date: Wed, 26 May 1993 03:15
28 lines
1357 bytes
In answer to my own previous post..

When compiling programs with strcpy, strlen, and strcmp on an fx2800, use
<strings.h> instead of <string.h>...  

<string.h> defines the functions as follows:

#define strcpy(s1,s2)	 _strcpy(s1,s2)

while <strings.h> uses:

char *strcpy(const char *s1, const char *s2);


somewhere along the line, a _ gets added to _strcpy to make it __strcpy which
is unknown...  Concentrix on the Alliants is kind of a hodgepodge of BSD
and Sys V and I was using the wrong include file..

Thanks

Brian Jones


-- 
==========================================================================
Brian Jones                                  email: brianj@skat.usc.edu  
University of Southern Cal                          bjones@aludra.usc.edu
Computing Services
Technical Details
Message-ID: <1tuncl$h05@skat.usc.edu>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!usc!usc!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,662906fe5923541b,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-25 20:17:46 PST
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!usc!usc!not-for-mail
From: brianj@skat.usc.edu (Brian Jones)
Newsgroups: gnu.gcc.help
Subject: Gcc 2.4.0 on alliant
Date: 25 May 1993 20:15:33 -0700
Organization: University Computing Services--U.S.C.
Lines: 28
Sender: brianj@skat.usc.edu
Message-ID: <1tuncl$h05@skat.usc.edu>
NNTP-Posting-Host: skat.usc.edu