home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / g / help / 1235 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.1 KB  |  29 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!lanai.cs.ucla.edu!jason
  3. From: jason@lanai.cs.ucla.edu (Jason Rosenberg)
  4. Subject: inlines in .cc files?
  5. Message-ID: <1992Sep15.184527.12855@cs.ucla.edu>
  6. Originator: jason@lanai.cs.ucla.edu
  7. Sender: usenet@cs.ucla.edu (Mr Usenet)
  8. Nntp-Posting-Host: lanai.cs.ucla.edu
  9. Organization: UCLA Computer Science Department
  10. Date: Tue, 15 Sep 92 18:45:27 GMT
  11. Lines: 16
  12.  
  13. Well, I guess you can't declare inline functions in .cc files, only in
  14. .h files.  Is this correct?  It makes sense, otherwise how would 
  15. incremental compiling work....
  16.  
  17. Anyway, I inadvertently did this, and had an undefined symbol problem.
  18. The functions I declared as inline came up undefined during linking.
  19.  
  20. I took off the inline declaration, and it compiles now.  If that was the
  21. problem, perhaps it would be a nice addition to add a compiler error
  22. message saying no inlines.....
  23.  
  24.  
  25. -- 
  26. Jason Rosenberg                           Computer Science Department
  27. jason@cs.ucla.edu                         University of California
  28. {uunet,rutgers,ucbvax}!ucla-cs!jason      Los Angeles, CA  90024
  29.