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

  1. Newsgroups: gnu.g++.lib.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!wcuvax1.wcu.edu!BRAY
  3. From: BRAY@wcuvax1.wcu.edu (Jim Bray)
  4. Subject: libg++-2.3 makes with -g removed from CFLAGS and CXXFLAGS
  5. Message-ID: <01GTA08OH8028WW5HY@WCUVAX1.WCU.EDU>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 8 Jan 1993 08:26:34 GMT
  10. Approved: bug-lib-g++@prep.ai.mit.edu
  11. Lines: 33
  12.  
  13.   Using gcc-2.3.3 and libg++-2.3, both configured as i486-sysv4:
  14.  
  15.   The "fatal signal six" error does not occur with CFLAGS and CXXFLAGS
  16. of nil or -O2.
  17.   I made and installed libg++ using no optimisation. 'make check'
  18. still fails as in my previous note. The simple test program, the
  19. beginning of which is included below, still fails as reported in my
  20. previous message.
  21.  
  22. --Jim Bray (bray@wcuvax1.wcu.edu)
  23.  
  24. (Run Linux, the Official OS of the New World Order :))
  25. (Please Support the League for Programming Freedom, and Boycott ATT
  26.  because of their legal intimidation of BSDI, UCB, and CMU)
  27.  
  28. #include "fstream.h"
  29. #include "stdlib.h"
  30.  
  31. void main()
  32. {
  33. ifstream infile;
  34. ofstream outfile;
  35. ofstream printer;
  36. char filename[20];
  37.  
  38.    cout << "Enter the desired file to copy ----> ";
  39.  
  40.    cin >> filename;
  41.    infile.open(filename, ios::nocreate);
  42.    if (!infile) {
  43.       cout << "Input file cannot be opened.\n";
  44.       exit(1);
  45.  
  46.