🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41879

gcc Solaris 2.4 help

#41879
From: John A. Carr
Date: Fri, 09 Feb 1996 00:00
40 lines
1251 bytes
I have gcc 2.5.6 installed under Solaris 2.4 & it seems to be working OK
for most things.  But I have one program that it's having trouble finding
string.h:

Makefile contains:
CC= /opt/gnu/bin/gcc
DEST= /usr/local/bin
MANDIR= /usr/man/manl
XXX_SRC=     xxx.c
XXX_OBJ=     xxx.o

all:    pstext

xxx: $(XXX_OBJ)
     $(CC) -O -o xxx $(XXX_OBJ)
...

make all produces:
/opt/gnu/bin/gcc    -c xxx.c
xxx.c:49: strings.h: No such file or directory
make: *** [xxx.o] Error 1

xxx.c contains:
/*
...
*/

#include <stdio.h>
#include <strings.h>
#include <ctype.h>
#define TRUE 1
#define FALSE 0
...

/opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.5.6/include/string.h exists.

What's wrong?  (My use of gcc is limited to compiling downloaded software.)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
John A. Carr        TRW Incorporated         carr@svl.trw.com
Technical Details
Message-ID: <carr-0902961930400001@jc7100.svl.trw.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,aa8898a7b2cb33bc,start
X-Google-Attributes: gid11318c,public
From: carr@svl.trw.com (John A. Carr)
Subject: gcc Solaris 2.4 help
Date: 1996/02/09
Message-ID: <carr-0902961930400001@jc7100.svl.trw.com>
X-Deja-AN: 138677301
organization: TRW Inc.
newsgroups: gnu.gcc.help