🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #251

inlines in .cc files?

#251
From: Jason Rosenberg
Date: Tue, 15 Sep 1992 18:45
16 lines
1146 bytes
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
Technical Details
Message-ID: <1992Sep15.184527.12855@cs.ucla.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!lanai.cs.ucla.edu!jason

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!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