home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16621 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!eagle!bonsai.lerc.nasa.gov!xxbja
  3. From: xxbja@bonsai.lerc.nasa.gov (Betty Jo Armstead)
  4. Subject: C++ signal problem
  5. Message-ID: <1992Nov18.220409.12513@eagle.lerc.nasa.gov>
  6. Sender: news@eagle.lerc.nasa.gov
  7. Nntp-Posting-Host: bonsai.lerc.nasa.gov
  8. Organization: NASA Lewis Research Center [Cleveland, Ohio]
  9. Date: Wed, 18 Nov 1992 22:04:09 GMT
  10. Lines: 20
  11.  
  12. Subject: C++ signal problem
  13. I am trying to compile a C++ program that contains signals.
  14.  
  15. The fillowing statement 
  16.    (void)signal(SIGTSTP,termstop);
  17. Gets the following error:
  18.  
  19.   "display.C" line 520 error: bad argument 2 for signal(): void (*)(int)
  20. ( void (*)(int...)expected)
  21.  
  22. The function termstop is declared type void
  23.  
  24. I am compiling on an Indigo system level 4.01 with Release 2.0 of C++
  25.  
  26. Any help will be greatly appreciated.
  27. -- 
  28. ======================================================================
  29. Betty Jo Armstead     xxbja@bonsai.lerc.nasa.gov  (216)-433-5086
  30. The future belongs to those who believe in the beauty of their dreams
  31. and work at making them come true.
  32.