home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / g / lib / bug / 774 < prev    next >
Encoding:
Text File  |  1993-01-13  |  1.3 KB  |  46 lines

  1. Newsgroups: gnu.g++.lib.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!sierra.COM!lipp
  3. From: lipp@sierra.COM (Damon Lipparelli)
  4. Subject: finding installed libg++
  5. Message-ID: <9301120044.AA08851@sierra.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Sierra Geophysics Inc.,  Kirkland, Wa
  8. Distribution: gnu
  9. Date: Tue, 12 Jan 1993 00:44:17 GMT
  10. Approved: bug-lib-g++@prep.ai.mit.edu
  11. Lines: 33
  12.  
  13. On an HP700 system, I've built libg++ 2.3 with gcc 2.3.3.  It gets
  14. installed automatically into $(somedir)/lib/libg++.a (where $(somedir) is
  15. determined by the configuration stage).  However, gcc doesn't look for
  16. libg++.a by default and can't seem to find it if I specify it as -lg++ on
  17. the command line.
  18.  
  19. I tried compiling the following program with "gcc -o tst tst.cc"
  20. and gcc died with two or three unresolved symbol errors.  When I tried to
  21. compile it with "gcc -o tst tst.cc -lg++", gcc said that it couldn't find
  22. "-lg++".  This is all very strange since gcc doesn't have any trouble
  23. finding the installed libg++ header files.
  24.  
  25. Is there something I'm missing?
  26.  
  27. Thanks for any information,
  28. -lipp
  29.  
  30. ps:  Here is the test source.
  31.  
  32. // "tst.cc"
  33. #include <iostream.h>
  34.  
  35. main()
  36. {
  37.   cerr << "here is some output" << endl;
  38. }
  39.  
  40. --
  41. Damon Lipparelli
  42. Sierra Geophysics, Inc.
  43. ARPA: lipp@sierra.com, UUNET: uunet!sgihbtn!lipp
  44. Phone: (206) 822-5200 (x375)
  45.  
  46.