🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.development.apps
Article #10

Questions about include files, and make file error

#10
From: Shayne G. Wright
Date: Fri, 29 Mar 1996 05:03
37 lines
1728 bytes
	Hi

		I have two questions about C programming, the
	first is for general interest, the second concerns my
	inability to compile procps-0.99 (the ps, top, watch,
	etc. processor utilities). I am using GCC-2.7.0 on
	a system running Linux-1.3.72

		The first question is, can it be setup so that
	an #include <ncurses.h> statement, or similar, would
	cause the compiler to look in /usr/include/ncurses
	or any other subdirectory, or do I have to make use of
	symbolic links and/or move the *.h files to /usr/include/

		The second question is, is there anything wrong
	with this line from a Makefile

	ld -shared,-Wl,-soname,$(SONAME) -o $@ $^

		Whenever I reach this part of the compilation
	I receive the following message :


Script started on Thu Mar 28 21:25:03 1996
krusty[proc]=2=>>make
ld -shared -Wl,-soname,libproc.so.0.99 -o libproc.so.0.99 alloc.o 
compare.o devname.o output.o pwcache.o readproc.o signals.o snap.o 
status.o sysinfo.o version.o whattime.o
ld: unrecognized option `-Wl,-soname,libproc.so.0.99'
make: *** [libproc.so.0.99] Error 1
krusty[proc]=3=>>exit
Script done on Thu Mar 28 21:25:26 1996


			As always my thanks
			Take Care 
			Shayne
Technical Details
Message-ID: <4jfqvn$gb6@sue.cc.uregina.ca>
Path: arc1-ca.pugleaf.net!HERCULES.CS.UREGINA.CA!wright

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!HERCULES.CS.UREGINA.CA!wright
From: wright@HERCULES.CS.UREGINA.CA (Shayne G. Wright)
Newsgroups: comp.os.linux.development.apps,comp.lang.c
Subject: Questions about include files, and make file error
Followup-To: comp.lang.c
Date: 29 Mar 1996 05:03:51 GMT
Organization: University of Regina, Dept. of Computer Science
Sender: Shayne G. Wright
Message-ID: <4jfqvn$gb6@sue.cc.uregina.ca>
NNTP-Posting-Host: hercules.cs.uregina.ca
Summary: How to access subdirectories of /usr/include and what is this ?