michael%sunham@sun.com (Michael Joswig (Vertriebsunterstuetzung Hamburg)) (10/19/90)
Hi there in the Net! Last Night I tried to install GnuC (1.36 I believe) on my Harddisk. I put the gcc to /usr/local and the other binaries to /usr/local/lib. I tried many directories to store the #include files in. I have an gnu.man which told me to put them to /usr/local/lib/gcc-include or to /usr/include Both directories were ignored from GnuC. Finaly I gave the option -I/usr/include which then worked. Q1: Does anybody know where to put the include files, so I don't need to use the -I option ? After "solving" this problem I tried GnuC on several source-files, especially on elvis and an newer(?) version of ls. I gave most of the library files via -l option, but he still said "_strchr not defined". strchr is a function from the strings.h-include file. All other functions of that includefile are ok, this one not (but is used by ls). Q2: Any suggestions? Ciao, Michael. PS: Once again: Sorry, I'm german and english is not my native language.
HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) (10/23/90)
The default include dir is compiled into the preprocessor, but /usr/local/gcc-include should be OK with the standard Makefile. strchr should be in your library. Perhaps a ranlib problem. Try ar xv <library> strchr.o; nm strchr.o and look if _strchr is defined. If that is OK, try ranlib <library> and retry the linkage. C.v.W.
UPSYF173%DBIUNI11.BITNET@cunyvm.cuny.edu (Wolfgang Thiel) (11/10/90)
The standard include directory is /usr/local/gcc-include. But be careful with this version: Some functions of the library are incom- patible with ST1.5, p.e. functions including <fcntl.h>. Wolfgang