www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/09/17:44:37

Message-ID: <32C920E8.3F3ADB44@caresystems.com.au>
Date: Wed, 01 Jan 1997 00:19:20 +1000
From: leon <Leon AT caresystems DOT com DOT au>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: about compiler or linker
References: <Pine DOT LNX DOT 4 DOT 10 DOT 10004080547160 DOT 2396-100000 AT darkstar DOT grendel DOT net>
Reply-To: djgpp AT delorie DOT com

Kalum Somaratna aka Grendel wrote:
> 
> On Mon, 1 Jan 2001, leon wrote:
> 
> Well the compiler knows where to get the inlined function from because the
> inlined function should be defined in a header file. 

huh?!

so what about this then:

//the .h file
class Some
{
	public:
		Some();
		~Some();
		inline void Method();
};

//the .cpp file
Some::Some()
{
	;
}
Some::~Some()
{
	;
}
void Some::Method()
{
	;
}

now if some class uses Some.h file - it will NOT contain the source code
definition of Method!

am i going wrong somewhere?

WIth best regards - Leon

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019