ctw%CNS.UMIST.AC.UK@MITVMA.MIT.EDU (03/17/89)
When trying to build the test programs for libg++ I get the following
result.
1 % make clean
rm -f *.o core libtest.a test0 test1 test2 test3 test4 test5a test5b test6 test7
test8 test9 test10 test11 test12 test13 test14 test15 test16 test17 test18
test19 test20 test21 test22 test23 test.bye test.bye2 test.shell plot.out int*
2 % make
g++ -c -g -O -fchar-charconst -fsave-memoized -I/usr/local/lib/g++-include
-DLDXX=\"/usr/local/lib/gcc-ld++\" -DCRT1X=\"/usr/local/lib/crt1+.o\"
test.hello.cc -o test.hello.o
/usr/include/sys/fcntlcom.h:62: warning: type declaration of flock shadows
previous declaration
/usr/include/sys/fcntlcom.h:62: warning: `flock' was declared `extern' and later
`static'
g++ -c -g -O -fchar-charconst -fsave-memoized -I/usr/local/lib/g++-include
-DLDXX=\"/usr/local/lib/gcc-ld++\" -DCRT1X=\"/usr/local/lib/crt1+.o\"
test.bye.cc -o test.bye
g++ -c -g -O -fchar-charconst -fsave-memoized -I/usr/local/lib/g++-include
-DLDXX=\"/usr/local/lib/gcc-ld++\" -DCRT1X=\"/usr/local/lib/crt1+.o\"
test.bye2.cc -o test.bye2
g++ -c -g -O -fchar-charconst -fsave-memoized -I/usr/local/lib/g++-include
-DLDXX=\"/usr/local/lib/gcc-ld++\" -DCRT1X=\"/usr/local/lib/crt1+.o\"
test.shell.cc -o test.shell
g++ test.hello.o -o test0
ld: No such file or directory for Mcrt1.o
*** Error code 1
--
Colin Walls
Janet: Colin@uk.ac.umist _______________________________
DARPA: Colin@umist.ac.uk | There is nothing, absolutely |
Uucp: ukc!umist.ac.uk!Colin | nothing, quite so nice as |
| messing about, simply |
Tel: 061-236-3311 x 2626 | messing about in boats |
International: +44-61-236-3311 x 2626 -------------------------------
mlm@CS.BROWN.EDU (03/18/89)
Turns out that gcc.c as distributed allows you to redefine STANDARD_STARTFILE_PREFIX to be any directory you want. It will check there and in /usr/local/lib for startup files, not in /usr/lib. Unfortunately, most system startup files live in /usr/lib, so unless you define STANDARD_STARTFILE_PREFIX to be /usr/lib, you'll lose. I changed the line in gcc.c char *standard_startfile_prefix_1 = "/usr/local/lib/"; to read char *standard_startfile_prefix_1 = "/usr/lib/"; This way I can specify my own startfile directory, without losing access to the system startup files. Moises ----------------------------------------------------------------------------- Internet/CSnet: mlm@cs.brown.edu BITNET: mlm@browncs.BITNET UUCP: ...!uunet!brunix!mlm Phone: (401)863-7664 USmail: Moises Lejter, Box 1910 Brown University, Providence RI 02912