From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with DLX Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <89gcos$ek9$1 AT cubacola DOT tninet DOT se> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 43 X-Trace: +r4CDjqfhECr2vHyJv08iUHzcBixll2Nil5XFx6o3DgFLXLVQQQ1xvTeiKbOLTkczNn+THx+Ysx6!86x1e4M8mlpqQVnzDNW8JYgJaYdNJoZdS1SGpEG5erzKkTysPz9FTS35IawjOojS07XU8+AwwH6N!fbwa 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: Wed, 01 Mar 2000 04:48:43 GMT Distribution: world Date: Wed, 01 Mar 2000 04:48:43 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 29 Feb 2000 13:04:58 +0100, "Marcus" wrote: >Hi all! >Okey, Damian told me to ask again here so I do it. > >I have a problem with the DLX package. I think this is a limitation but I >don't know. I get this error when I try load a DLX I have made. > >DLX Error! >Unresolved External: > _puts > >The only function I use in the DLX is just the puts function. I can solve >the problem by using this code in the loader. >DLXUSE_BEGIN > LIBEXPORT_BEGIN > LIBEXPORT(puts) > LIBEXPORT_END >DLXUSE_END >DLXImport(_LIBEXPORTTABLE); > >But if I don't know if puts is used. What can I do then? I can't export all >functions in the world. Because I want to be able to use all functions in >the DLX. Help please... And then the lightbulb appeared above my head: One method is to write your own basic I/O library, a subset of libc. Export MYputs(), sprintf(), MYprintf(), and anything else you think plugin authors might need, and document what you export. If you have any other questions, the DLX maintainer would most likely be glad to help. -- Damian Yerrick http://yerricde.tripod.com/ Comment on story ideas: http://home1.gte.net/frodo/quickjot.html AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/ View full sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your .sig to prevent the spread of .sig viruses. http://www.mcafee.com/