This is the mail archive of the
mailing list for the binutils project.
RE: Linking against libbfd under Windows/CygWin/MingW
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'David D. Hagood'" <wowbagger at sktc dot net>, <binutils at sourceware dot org>
- Date: Tue, 9 Jan 2007 16:24:41 -0000
- Subject: RE: Linking against libbfd under Windows/CygWin/MingW
On 09 January 2007 16:19, David D. Hagood wrote:
> What steps are needed to be able to create a Windows command line
> executable which links against libbfd?
Build and install libbfd, then just compile your app with "-lbfd".
> Ideally, I'd like to simply cross-compile it on my Linux box and hand
> him the executable, but I'm not sure on how to insure the proper linkage
> against libbfd, as well as the other dain-bramage needed to run a
> Windows CLI program.
Perhaps you're best off compiling libbfd with --disable-shared and just
statically linking it into the final app?
> I've not found any good docs on this - most folks building Ming programs
> that I've found are NOT linking against other *nix-y things like libbfd.
We do it all the time on cygwin, and we even use dlopen/dlsym to load dll's
as if they were standard dsos. There should not be any serious difficulties.
Can't think of a witty .sigline today....