www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Stub Libraries in Digital Mars

↑ ↓ ← 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
↑ ↓ → 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