ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/05/13/01:32:27

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: hamrick DOT paul AT gmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: How to do Simple Dynamic Linking with DJGPP?
Date: 12 May 2007 22:24:10 -0700
Organization: http://groups.google.com
Lines: 26
Message-ID: <1179033850.566172.287250@u30g2000hsc.googlegroups.com>
NNTP-Posting-Host: 66.56.8.131
Mime-Version: 1.0
X-Trace: posting.google.com 1179033851 2692 127.0.0.1 (13 May 2007 05:24:11 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Sun, 13 May 2007 05:24:11 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 1.0.3705),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: u30g2000hsc.googlegroups.com; posting-host=66.56.8.131;
posting-account=s1XaaQ0AAABkkC-Lp9tidbWJ9Q_ycojx
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I'm fairly new to C++ programming. I'm trying to achieve some very
basic dynamic linking.  How do I go about doing this?  What I want to
do, is have a "shared object" file that basically contains a class
definition, class methods, etc.  I also want an executable program
that at runtime grabs this shared object file and uses it to create an
instance of the class that is defined in it.  Does this mean I would
have something like this:

exectuable.exe
sharedobject.so

???

I'm not worried about doing this in any way that is considered to be
the conventional way.  I only want to achieve some simple dynamic
linking, just to see if I can get it to work.  Eventually I want to
learn COM, and before I start messing with COM I want to have a
modular program.  Please let me know if you can clarify any of my
confusion.

Thanks,

Paul

- Raw text -


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