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