www.digitalmars.com         C & C++   DMDScript  

c++ - Stub Libraries in Digital Mars

reply Thornton Reed <Thornton_member pathlink.com> writes:
Hi,

I'm very new to making use of 'open source' libraries in my C programs. I'm
currently trying to use the GD graphics library. This library can be used by
linking my program to a dll.  The documentation of this library states that
'users can simply link with the provided libbgd.a stub library in order to use
the DLL'.  How would I go about linking this stub library to my C program using
Digital Mars?  What command should I use at the Command Line?

Thanks for any help you can offer,

T
Apr 29 2006
parent Bertel Brander <bertel post4.tele.dk> writes:
Thornton Reed wrote:
 Hi,
 
 I'm very new to making use of 'open source' libraries in my C programs. I'm
 currently trying to use the GD graphics library. This library can be used by
 linking my program to a dll.  The documentation of this library states that
 'users can simply link with the provided libbgd.a stub library in order to use
 the DLL'.  How would I go about linking this stub library to my C program using
 Digital Mars?  What command should I use at the Command Line?
I think that you need to create a dmc library, and link to that, instead of the gcc .a version. You do that by using implib. You can read how to create the lib and link to it here: http://home20.inet.tele.dk/midgaard/tipwin20060212.html -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Apr 29 2006