www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/30/22:26:51

From: "Damian Yerrick" <NOSP AT Msnews@pineight.8m.com>
Newsgroups: comp.os.msdos.djgpp
References: <fyoofqnexgrpubet DOT fnl1720 DOT pminews AT nntp DOT generation DOT net>
Subject: Re: inline functions -- unknown references
Lines: 34
Organization: Pin Eight Software <http://pineight.8m.com/>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <s9Va4.1882$Gj5.32200@dfiatx1-snr1.gtei.net>
X-Trace: /bJ8XTpO0ip641ZjAeTABFUDgrvkdDeLNGR6D10iGiOmIXuMSezbSc4lGAxpAwSpVJFJv1QlsDcV!7kSdLaz24452KhLvnIU+oHBdAeJxJfRufH9sgKL46UDV8n/sP1inuQuxDzZb5fQ3OGAsGu0=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Fri, 31 Dec 1999 03:11:20 GMT
Distribution: world
Date: Fri, 31 Dec 1999 03:11:20 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"sl" <junk AT bbs DOT darktech DOT org> wrote:
>
> I'd like to make some of my functions 'inline'.. As far as I know,
> placing the word 'inline' right before the function implementation should
be
> enough.. Unfortunately when I do this and I call these functions from
other
> source-files, I get "unknown reference" errors.. I was told this had to do
> with the fact that I am calling inline functions in one source-file from
> ANOTHER source-file.. Supposidly that's illegal..
>
> Could someone please explain this to me? I would like to inline my
> GFX library functions (such as plot()ing a pixel) but be able to use them
> from other files.. This seems reasonable enough no? :)

I don't know that much about inlining, but try dropping all your inline
functions into a header file and #includeing it from your source files.

--
Damian Yerrick    http://yerricde.tripod.com/
View full .sig:  http://www.rose-hulman.edu/~yerricde/sig.html










and now you must pay...


- Raw text -


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