www.delorie.com/archives/browse.cgi | search |
From: | "sl" <junk AT bbs DOT darktech DOT org> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | inline functions -- unknown references |
Date: | Thu, 30 Dec 1999 20:52:14 -0500 (EST) |
Organization: | Posted via Supernews, http://www.supernews.com |
Lines: | 16 |
Message-ID: | <fyoofqnexgrpubet.fnl1720.pminews@nntp.generation.net> |
X-Complaints-To: | newsabuse AT supernews DOT com |
X-Newsreader: | PMINews 2.00.1205 For OS/2 |
MIME-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi, 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? :) Gili
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |